GridToolbarButtonTagHelper
Example
Razor
<toolbar-button>
<toolbar-command-template></toolbar-command-template>
</toolbar-button>
ChildTags
| Tag Name | Details |
|---|---|
| toolbar-command-template | TemplateTagHelper |
Attributes
| Attribute | Type | Description |
|---|---|---|
| name | String | Set the name of the built-in or custom command. Built-in commands are: "cancel", "create", "save", "excel", "pdf", "search", "columns", "sort", "filter", "columnChooser", "cancelEdit", "update", "destroy", "edit", "group", "selectAll","aiAssistant", "spacer" and "separator". |
| clear-button | Boolean | Show a clear all sorts or clear all filters button. Applicable only for sort, filter and group tools. |
| icon-class | String | Set the icon for the command. |
| template | String | Set the template for the command. |
| template-id | String | Sets the template script for the command. |
| template-view | IHtmlContent | Sets the partial view for the ToolBar command template. |
| text | String | Set the text of the command. |
| type | String | Set the type of the ToolBar command. Supported options are "spacer" and "separator". Type should be set for "spacer" and "separator" commands. |