Table of Contents

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

TItem

The 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

string

CellFormatter

Gets or sets a custom render function for the cell content.

public Func<TItem, string>? CellFormatter { get; set; }

Property Value

Func<TItem, string>

HeaderClass

Gets or sets additional CSS classes for the header cell.

public string? HeaderClass { get; set; }

Property Value

string

IsSortable

Gets or sets whether this column is sortable.

public bool IsSortable { get; set; }

Property Value

bool

Name

Gets or sets the unique name/key for the column.

public string Name { get; set; }

Property Value

string

PropertySelector

Gets or sets the property selector expression for accessing the column value.

public Func<TItem, object?>? PropertySelector { get; set; }

Property Value

Func<TItem, object>

Title

Gets or sets the display title for the column header.

public string Title { get; set; }

Property Value

string