Row actions
Since 0.1.0-alpha.20
The members for row actions, and the types they use. Every member of
IzzyBlazor.DataGrid<TItem> is on the DataGrid API.
Properties (2)
RowHrefFunc<TItem, string?>?Makes each row a link, such as to the item's details page. The whole row is clickable; links, buttons and checkboxes inside it still work on their own.
Parts (2)
Components written inside DataGrid, and the columns' members, which PropertyColumn, TemplateColumn and DynamicColumn share.
ActionColumn<TItem>
The column that holds a row's actions, at the end of a DataGrid. A grid with editing has one by itself, with Edit and Delete; write one to set their order, or to add your own actions.
ChildContentRenderFragment<TItem>?The row's actions: EditAction, DeleteAction and RowAction. context is the row.
OverflowRowActionOverflow = RowActionOverflow.AutoWhere its actions show, unless one says otherwise. RowActionOverflow.Always makes it a ⋯ menu. The default, RowActionOverflow.Auto, is buttons, which move into the menu once the grid hides columns to fit (DataGridSmallScreen.HideColumns).
RowAction
An action of your own on a row: an icon button with a tooltip, or an item in its menu.
IconIconData?Its icon.
Labelstring requiredWhat it does: the button's name and tooltip, or the item's text. Say which row, if it isn't clear from a list of them.
Hrefstring?Makes it a link.
Namestring?Valuestring?The value the button posts.
Formstring?The id of the form it submits. Setting it makes it a submit button.
Disabledbool = falseWhether it can't be used.
Visiblebool = trueWhether this row has it.
OverflowRowActionOverflow? (computed)Where it shows. Defaults to the column's Overflow.
OnClickEventCallbackRuns when it's used, on interactive pages.
Types (1)
RowActionOverflow
enumWhere a row's action shows in a DataGrid's ActionColumn<T>.
| Value | Description |
|---|---|
Auto | A button in the row, until the grid hides columns to fit ( |
Never | A button in the row, always. |
Always | In the row's ⋯ menu. |