Class TwDataTableColumn<TItem>
- Namespace
- TwBlazor.Components
- Assembly
- TwBlazor.dll
Defines a column in the TwDataTable with its properties and behavior.
public class TwDataTableColumn<TItem>
Type Parameters
TItemThe type of items displayed in the table.
- Inheritance
-
TwDataTableColumn<TItem>
- Inherited Members
Constructors
TwDataTableColumn()
public TwDataTableColumn()
Properties
CellClass
Gets or sets additional CSS classes for the data cells.
public string? CellClass { get; set; }
Property Value
CellFormatter
Gets or sets a custom render function for the cell content.
public Func<TItem, string>? CellFormatter { get; set; }
Property Value
HeaderClass
Gets or sets additional CSS classes for the header cell.
public string? HeaderClass { get; set; }
Property Value
IsSortable
Gets or sets whether this column is sortable.
public bool IsSortable { get; set; }
Property Value
Name
Gets or sets the unique name/key for the column.
public string Name { get; set; }
Property Value
PropertySelector
Gets or sets the property selector expression for accessing the column value.
public Func<TItem, object?>? PropertySelector { get; set; }
Property Value
Title
Gets or sets the display title for the column header.
public string Title { get; set; }