Class TwDataTableColumnState
- Namespace
- TwBlazor.Components
- Assembly
- TwBlazor.dll
The saved settings of one TwDataTableColumn<TItem> in a TwDataTableState.
public sealed class TwDataTableColumnState
- Inheritance
-
TwDataTableColumnState
- Inherited Members
Constructors
TwDataTableColumnState()
public TwDataTableColumnState()
Properties
Filter
Gets or sets the column's filter, or null when it is not filtered.
public ColumnFilter? Filter { get; set; }
Property Value
Name
Gets or sets the Name of the column these settings belong to.
public string Name { get; set; }
Property Value
Visible
Gets or sets whether the column is shown. Defaults to true.
public bool Visible { get; set; }
Property Value
Width
Gets or sets the width of the column as a CSS length, or null to share the space that is left.
public string? Width { get; set; }
Property Value
Methods
Clone()
Creates a copy of these settings.
public TwDataTableColumnState Clone()
Returns
- TwDataTableColumnState
A new TwDataTableColumnState with the same values.