Export
Since 0.1.0-alpha.20
The members for export, and the types they use. Every member of
IzzyBlazor.DataGrid<TItem> is on the DataGrid API.
Properties (2)
ExportCsvHrefstring?A link in the toolbar, in a menu with ExportExcelHref, to an endpoint that writes the rows as CSV with DataExport, for a grid that offers CSV besides Excel. It adds the current filter, sort, search and columns to the address. The endpoint's fields need the grid's keys, and its FilterCase as their Case, for the file to match the screen.
ExportExcelHrefstring?A link in the toolbar, in a menu with ExportCsvHref, to an endpoint that writes the rows as an Excel workbook with DataExport. It adds the current filter, sort, search and columns to the address. The endpoint's fields need the grid's keys, and its FilterCase as their Case, for the file to match the screen.
Parts (1)
Components written inside DataGrid, and the columns' members, which PropertyColumn and TemplateColumn share.
DataGridExport
Puts a DataGrid's export, from ExportExcelHref and ExportCsvHref, among your toolbar items: a link with one of them, or with both a button with a chevron that opens a menu of links. At the end unless Position says otherwise.
Priorityint = 0Which items stay longest when there's no room: higher stays longer. Defaults to 0.
OverflowToolbarOverflow = ToolbarOverflow.AutoWhen it moves into the "…" menu. Defaults to ToolbarOverflow.Auto.
ShowTextbool? (computed)Its text beside its icon, or only its icon. Defaults to the grid's ToolbarLabels.
PositionToolbarPosition = ToolbarPosition.EndWhere it sits, among the items of that position in the order they're written.
Types (2)
ToolbarOverflow
enumWhen an item of a Toolbar moves into its "…" menu.
| Value | Description |
|---|---|
Auto | When there's no room for it, in order of |
Never | Never: it stays in the bar, such as the main action. |
Always | Always: it's only in the menu, such as Print or Version history. |
ToolbarPosition
enumWhere an item of a Toolbar sits.
| Value | Description |
|---|---|
Start | At the start (the left in left-to-right text), the default. |
Center | In the middle, kept centered between the start and the end. |
End | At the end, before the "…" menu. |