Class TableModelConfig<T, TKey>
- Namespace
- Htmx.Components.Table.Models
- Assembly
- Htmx.Components.dll
Configuration class for building table models.
public class TableModelConfig<T, TKey> where T : class
Type Parameters
T
The entity type displayed in the table.
TKey
The key type for the entity.
- Inheritance
-
TableModelConfig<T, TKey>
- Inherited Members
- Extension Methods
Properties
ActionsFactories
Gets or sets a collection of factory functions that generate action models for the table.
public List<Func<TableModel<T, TKey>, Task<IEnumerable<ActionModel>>>> ActionsFactories { get; set; }
Property Value
- List<Func<TableModel<T, TKey>, Task<IEnumerable<ActionModel>>>>
Columns
Gets the collection of column models defining the table structure.
public List<TableColumnModel<T, TKey>> Columns { get; }
Property Value
- List<TableColumnModel<T, TKey>>
KeySelector
Gets or sets the key selector expression for the entity.
public Expression<Func<T, TKey>>? KeySelector { get; set; }
Property Value
- Expression<Func<T, TKey>>
ModelHandler
Gets or sets the model handler responsible for data operations.
public ModelHandler<T, TKey>? ModelHandler { get; set; }
Property Value
- ModelHandler<T, TKey>
TypeId
Gets or sets the unique type identifier for the table model.
public string? TypeId { get; set; }