Skip to content

Column<T>

Abstract base for a DataGrid<T> column. Concrete columns (PropertyColumn<T1, T2>, TemplateColumn<T>) register themselves with the owning grid on first render.

  • T — Row item type.

Whether this column can actually be sorted (sortable AND a sort func exists).

Optional CSS class applied to every body cell in this column.

Optional CSS class applied to the header cell.

Stable identifier used as the sort key. Defaults to Column<T>.Title.

Owning grid, supplied via cascading value.

Whether the column is sortable.

Column header text.

Returns the value used to sort rows by this column, or null when not sortable.

Renders the cell content for the given row.