TreeListToolbarTagHelper
Example
Razor
<treelist-toolbar-button>
<treelist-toolbar-command-template></treelist-toolbar-command-template>
</treelist-toolbar-button>
ChildTags
Tag Name | Details |
---|---|
treelist-toolbar-command-template | TemplateTagHelper |
Attributes
Attribute | Type | Description |
---|---|---|
name | String | The name of the toolbar command. Can be either a built-in ("create", "excel", or "pdf") or a custom string. The name is output in the HTML as a value of the data-command attribute of the button. |
click | String | The click handler of the toolbar command. Used for custom toolbar commands. |
icon | String | Specifies the icon's name that will be rendered inside the toolbar button. When you set this option, the TreeList renders an additional span element inside the toolbar button which has a name set to the option value. This approach allows you to display an icon inside your custom toolbar commands. |
image-class | String | A class name that will be rendered inside the toolbar button. When you set this option, the TreeList renders an additional span element inside the toolbar button which has a class name set to the option value. This approach allows you to display an icon inside your custom toolbar commands. |
template | String | The template which renders the command. By default renders a button. Uses the template for a ToolBar item toolbar.items.template |
template-handler | String | The template which renders the command. By default renders a button. Uses the template for a ToolBar item toolbar.items.template |
template-id | String | The template which renders the command. By default renders a button. Uses the template for a ToolBar item toolbar.items.template |
template-view | IHtmlContent | The template which renders the command. By default renders a button. Uses the template for a ToolBar item toolbar.items.template |
text | String | The text that is displayed by the command button. If not set, the TreeList will use the name` option as the button text instead. |
type | String | Set the type of the ToolBar command. Supported options are "spacer" and "separator". Type should be set for "spacer" and "separator" commands. |