# ToolBarItemTagHelper

## Example

```
<item>
    <buttons></buttons>
    <icon />
    <item-overflow-template></item-overflow-template>
    <item-template></item-template>
    <menu-buttons></menu-buttons>
</item>
```

## ChildTags

| Tag Name               | Details                                                                                                                                                        |
| ---------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| buttons                | [ToolBarItemButtonsTagHelper](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.taghelpers/toolbaritembuttonstaghelper)                       |
| icon                   | [ToolBarItemButtonIconSettingsTagHelper](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.taghelpers/toolbaritembuttoniconsettingstaghelper) |
| item-overflow-template | [TemplateTagHelper](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.taghelpers/templatetaghelper)                                           |
| item-template          | [TemplateTagHelper](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.taghelpers/templatetaghelper)                                           |
| menu-buttons           | [ToolBarItemMenuButtonsTagHelper](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.taghelpers/toolbaritemmenubuttonstaghelper)               |

## Attributes

| Attribute                 | Type                                                                                                             | Description                                                                                                                                                                                                                                                                               |
| ------------------------- | ---------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| click                     | String                                                                                                           | Specifies the click event handler of the button. Applicable only for commands of type button and splitButton.                                                                                                                                                                             |
| enable                    | Boolean                                                                                                          | Specifies whether the control is initially enabled or disabled. Default value is "true".                                                                                                                                                                                                  |
| group                     | String                                                                                                           | Assigns the button to a group. Applicable only for buttons with togglable: true.                                                                                                                                                                                                          |
| hidden                    | Boolean                                                                                                          | Determines if a button is visible or hidden. By default buttons are visible.                                                                                                                                                                                                              |
| html-attributes           | Object                                                                                                           | Specifies the HTML attributes of a ToolBar button.                                                                                                                                                                                                                                        |
| icon                      | String                                                                                                           | Sets icon for the item. The icon should be one of the existing in the Kendo UI theme sprite.Set this option to an icon descriptor such as { name: "gear", variant: "outline" }. The variant can be outline, solid, or duotone; it applies to SVG rendering and is ignored for font icons. |
| id                        | String                                                                                                           | Specifies the ID of the button.                                                                                                                                                                                                                                                           |
| image-url                 | String                                                                                                           | If set, the ToolBar will render an image with the specified URL in the button.                                                                                                                                                                                                            |
| overflow                  | [ShowInOverflowPopup](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui/showinoverflowpopup) | Specifies what element will be added in the command overflow popup. Applicable only for items that have a template.                                                                                                                                                                       |
| overflow-template         | String                                                                                                           | Specifies what element will be added in the command overflow popup. Applicable only for items that have a template.                                                                                                                                                                       |
| overflow-template-handler | String                                                                                                           | Specifies what element will be added in the command overflow popup. Applicable only for items that have a template. This option expects the name of a JavaScript function that will be called to return the template.                                                                     |
| overflow-template-id      | String                                                                                                           | Specifies what element will be added in the command overflow popup. Applicable only for items that have a template. This option expects the ID of the script element that contains the template.                                                                                          |
| overflow-template-view    | IHtmlContent                                                                                                     | Specifies what element will be added in the command overflow popup. Applicable only for items that have a template. This option expects the  instance containing the created HTML.                                                                                                        |
| primary                   | Boolean                                                                                                          | Specifies whether the button is primary. Primary buttons receive different styling.                                                                                                                                                                                                       |
| selected                  | Boolean                                                                                                          | Specifies if the toggle button is initially selected. Applicable only for buttons with togglable: true.                                                                                                                                                                                   |
| show-icon                 | [ShowIn](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui/showin)                           | Specifies where the icon will be displayed.                                                                                                                                                                                                                                               |
| show-text                 | [ShowIn](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui/showin)                           | Specifies where the text will be displayed.                                                                                                                                                                                                                                               |
| sprite-css-class          | String                                                                                                           | Defines a CSS class (or multiple classes separated by spaces) which will be used for button icon.                                                                                                                                                                                         |
| template                  | String                                                                                                           | Specifies what element will be added in the ToolBar wrapper. Items with template does not have a type.                                                                                                                                                                                    |
| template-handler          | String                                                                                                           | Specifies what element will be added in the ToolBar wrapper. Items with template does not have a type.                                                                                                                                                                                    |
| template-id               | String                                                                                                           | Specifies what element will be added in the ToolBar wrapper. Items with template does not have a type.                                                                                                                                                                                    |
| template-view             | IHtmlContent                                                                                                     | Specifies what element will be added in the ToolBar wrapper. Items with template does not have a type.                                                                                                                                                                                    |
| text                      | String                                                                                                           | Sets the text of the button.                                                                                                                                                                                                                                                              |
| togglable                 | Boolean                                                                                                          | Specifies if the button is togglable, e.g. has a selected and unselected state.                                                                                                                                                                                                           |
| toggle                    | String                                                                                                           | Specifies the toggle event handler of the button. Applicable only for commands of type button and togglable: true.                                                                                                                                                                        |
| type                      | [CommandType](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui/commandtype)                 | Specifies the type of the item.                                                                                                                                                                                                                                                           |
| url                       | String                                                                                                           | Specifies the url to navigate to.                                                                                                                                                                                                                                                         |
