Class DataColumnRegistration<TItem>
- Namespace
- BlazOrbit.Components
- Assembly
- BlazOrbit.dll
Describes how a single column is rendered and behaves inside a data collection.
public sealed class DataColumnRegistration<TItem>
Type Parameters
TItem
- Inheritance
-
objectDataColumnRegistration<TItem>
Constructors
DataColumnRegistration()
public DataColumnRegistration()
Properties
Align
Horizontal alignment for the column's header and cells.
public ColumnAlign Align { get; set; }
Property Value
CellClass
Extra CSS class applied to every cell in the column.
public string? CellClass { get; set; }
Property Value
- string
CustomComparer
Optional comparer used when sorting by this column.
public Func<TItem, TItem, int>? CustomComparer { get; set; }
Property Value
- Func<TItem, TItem, int>
CustomFilter
Optional predicate used to evaluate filter matches for the column.
public Func<TItem, string, bool>? CustomFilter { get; set; }
Property Value
- Func<TItem, string, bool>
Filterable
When true, the column participates in free-text filtering.
public bool Filterable { get; set; }
Property Value
- bool
Format
Optional format string applied to System.IFormattable values.
public string? Format { get; set; }
Property Value
- string
Header
Header label rendered when no HeaderTemplate is provided.
public string? Header { get; set; }
Property Value
- string
HeaderClass
Extra CSS class applied to the header cell.
public string? HeaderClass { get; set; }
Property Value
- string
HeaderTemplate
Custom render fragment used in place of Header.
public RenderFragment? HeaderTemplate { get; set; }
Property Value
- RenderFragment
Sortable
When true, the column header acts as a sort affordance.
public bool Sortable { get; set; }
Property Value
- bool
Template
Cell render template receiving the row item.
public RenderFragment<TItem>? Template { get; set; }
Property Value
- RenderFragment<TItem>
ValueSelector
Selector used to project the cell value from the row item.
public Func<TItem, object?>? ValueSelector { get; set; }
Property Value
- Func<TItem, object>
Visible
When false, the column is registered but not rendered.
public bool Visible { get; set; }
Property Value
- bool
Width
Optional explicit column width (any valid CSS length).
public string? Width { get; set; }
Property Value
- string