Aller au contenu principal

LgGridEnumColumn<TItem, TColumnValue>

Module : Lagoon.UI.GridView
Namespace : Lagoon.UI.Components
Catégorie : Columns
Hérite de : LgGridBaseFilterableColumn<TItem, TColumnValue>

Enum column

Paramètres​

ParamètreTypeDescription
ExportFormatExportEnumFormat?Gets or sets default value to export.
InputMaskstringGets or sets the input mask of the cell editor.
InputMaskKindInputMaskKindGets or sets the input mask kind of the cell editor.
InputMaskPlaceholderstringGets or sets the character (or string) filling the empty positions of the input mask of the search box of the dropdown.
MinSearchCharacterintGets or sets minimal input length before the search is fired
PlaceholderstringGets or sets the placeholder of the cell editor.
ResetButtonbool?Gets or sets if the reset button is diplayed

Paramètres hérités de LgGridBaseFilterableColumn<TItem, TColumnValue>​

ParamètreTypeDescription
AllowFilterboolGets or sets if the column has filter
DefaultFilterFilterGets or sets the default filter value.
FilterCellContentRenderFragment<FilterContext<TItem>>Gets or sets the filter cell content.
FilterDisableSelectionboolGets or sets if the selection tab is visible.
FilterSelectorExpression<Func<TItem, object>>Gets or sets a per-item filter key expression item => item.Key. Modern, strongly typed replacement of the obsolete FilterExpression: when set it enables the column filter and provides the key (presence wins over FilterExpression). A value-type key is automatically unboxed so the expression stays translatable to a remote query; a computed key (not a simple member path) works locally only. Frozen once at column registration.
FilterShowAllItemsbool?Specifies whether the filter should suggest all available values regardless of the filters in use in the other columns. By default it's false for "Enum", "Boolean" or "Select" columns and true for all other columns.
MinSearchFilterCharacterintGets or ses minimal filter input length before the search is fired

Paramètres hérités de LgGridBaseValueColumn<TItem, TColumnValue>​

ParamètreTypeDescription
CellContentRenderFragment<GridCellContext<TItem, TColumnValue>>Gets or sets template of the normal cell. The context exposes the cell value and the item bound to the row.
CustomEditTypeTypeGets or sets type of component used in edit mode
EditCellContentRenderFragment<GridCellContext<TItem, TColumnValue>>Gets or sets template of the edit cell. The context exposes the cell value and the item bound to the row.
ValueTColumnValueGets or sets bound value
ValueChangedEventCallback<TColumnValue>Gets or sets a callback that updates the bound value
ValueExpressionExpression<Func<TColumnValue>>Gets or sets an expression that identifies the bound value
ValueSelectorExpression<Func<TItem, TColumnValue>>Gets or sets a per-item value provider item => item.X, an alternative to @bind-Value that does not capture the "Columns" context variable (the fragment is materialized only once). Unlike a display-only selector it is a full value provider: it feeds the read access, the sort, the filter, the group and the export. It must be an expression tree (not a Func) so a simple member path stays translatable to a remote query; a computed selector (method call, arithmetic...) works on local data only and makes the column read-only (the value cannot be written back). Mutually exclusive with @bind-Value.

Paramètres hérités de LgGridBaseColumn<TItem>​

ParamètreTypeDescription
AllowHideboolGets or sets if the column can be hidden
AllowSortboolGets or sets if the column can be sorted
AriaLabelstringGets or sets aria label
AriaLabelledBystringGets or sets id of component for aria label
CalculationCssClassstringGets or sets css class for column calculation cell
CalculationDisplayFormatstringGets or sets the display format for the calculation cell.
CalculationTypeDataCalculationTypeGets or sets calculation function
CanAddboolGets or sets if we can add new lines.
CanEditboolGets or sets if the cells are editable
CanEditSelectorFunc<TItem, bool>Gets or sets a selector deciding, from the item bound to the row, whether this column's cell is editable. Combined with CanEdit and the grid edit capability. Use this instead of capturing the "Columns" context variable in CanEdit (the "Columns" fragment is evaluated only once).
ColSpanintGets or sets field with column span value
ConfirmationMessagestringGets or sets confirmation message in cell edit mode only
CssClassstringGets or sets css class for all column cells
CssClassSelectorFunc<TItem, string>Gets or sets a selector returning an additional CSS class for a body cell, from the item bound to the row. Use this instead of capturing the "Columns" context variable in CssClass (the "Columns" fragment is evaluated only once). The selector is also called with a null item for the calculation cell of the column (e.g. to apply a background color to the whole column): a selector reading the item must handle null when the grid has a calculation row.
DefaultFrozenboolGets or sets if the column is frozen.
DefaultSortDirectionDataSortDirectionGets or sets default sort direction
DefaultVisibleboolGets or sets if the column is displayed
DefaultWidthstringGets or set width of the column. Default value : "1fr"
DisplayFormatstringGets or sets the display format.
DisplayFormatSelectorFunc<TItem, string>Gets or sets a selector returning the display format of a body cell, from the item bound to the row. When set, its per-row result wins over DisplayFormat. Use this instead of capturing the "Columns" context variable in DisplayFormat (the "Columns" fragment is evaluated only once). Affects the read-only display only (not the export nor the group headers). The selector is also called with a null item for the calculation cell: a selector reading the item must handle null when the grid has a calculation row.
ExportTitlestringGets or sets the title used when the column is exported. The column "Title" parameter is used by default.
ExportValueAsStringboolForce the current value to be reconize as a string.
ExportableboolGets or sets if the column is exportable.
GroupNamestringGets or sets the column group name. See the LgGroup component for a simplified declaration of column groups.
GroupSelectorExpression<Func<TItem, object>>Gets or sets a per-item group key expression item => item.Key. Modern, strongly typed replacement of the obsolete GroupExpression: when set it provides the group key (presence wins over GroupExpression). Same unboxing and remote/local caveats as SortSelector. Frozen once at column registration.
HeaderCellContentRenderFragmentGets or sets header content.
HeaderCssClassstringGets or sets the header CSS class.
HeaderTooltipstringGets or sets tooltip for header cell
HideContentboolGets or sets if the cells contents are displayed
HideContentSelectorFunc<TItem, bool>Gets or sets a selector deciding, from the item bound to the row, whether this column's cell content is hidden. When set, its per-row result wins over HideContent. Use this instead of capturing the "Columns" context variable in HideContent (the "Columns" fragment is evaluated only once). The selector is also called with a null item for the calculation cell of the column: a selector reading the item must handle null when the grid has a calculation row.
KeystringGets or sets unique id of the column
LambdaSelectorExpression<Func<TItem, object>>Gets or sets a per-item expression item => item.Key shared as the fallback for the filter, the sort and the group. Modern, strongly typed replacement of the obsolete LambdaExpression: when set it enables the filter and the sort and provides the key (presence wins over LambdaExpression). Same unboxing and remote/local caveats as SortSelector. Frozen once at column registration.
MaxWidthintGets or sets maximal width
MinWidthintGets or sets minimal width
OnCellClickEventCallback<GridViewCellClickEventArgs<TItem>>Gets or sets cell click event
ResizableboolGets or sets if the column can be resized
SortSelectorExpression<Func<TItem, object>>Gets or sets a per-item sort key expression item => item.Key. Modern, strongly typed replacement of the obsolete SortExpression: when set it enables the column sort and provides the key (presence wins over SortExpression). A value-type key is automatically unboxed so the expression stays translatable to a remote query; a computed key (not a simple member path) works locally only. Frozen once at column registration (changing it at runtime is not supported).
TitlestringGets or sets title
WeightSelectorExpression<Func<TItem, object>>Gets or sets a per-item weight expression item => item.Weight used to compute the weighted average of the column (requires a DataCalculationType.Average calculation). Modern, strongly typed replacement of the obsolete WeightExpression: when set it provides the weight (presence wins over WeightExpression). A value-type weight is automatically unboxed so the expression stays translatable to a remote query. Frozen once at column registration.

Paramètres en cascade hérités de LgGridBaseColumn<TItem>​

ParamètreTypeDescription
GridViewLgGridView<TItem>GridView parent