# TreeListToolbarBuilder

## Methods

### Icon(System.Action)

Specifies the icon's name that will be rendered inside the toolbar button. 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.

#### Parameters

##### configurator - System.Action<[TreeListToolbarIconSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/treelisttoolbariconsettingsbuilder)>

The configurator for the icon setting.

#### RETURNS

Returns the current instance of [TreeListToolbarBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/treelisttoolbarbuilder) .

### Click(System.String)

The click handler of the toolbar command. Used for custom toolbar commands.

#### Parameters

##### handler - `System.String`

The name of the JavaScript function that will be evaluated.

### Click(System.Func)

The click handler of the toolbar command. Used for custom toolbar commands.

#### Parameters

##### handler - `System.Func<Object,Object>`

The handler code wrapped in a text tag.

### Icon(System.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.

#### Parameters

##### value - `System.String`

The value for Icon

### ImageClass(System.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.

#### Parameters

##### value - `System.String`

The value for ImageClass

### Name(System.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.

#### Parameters

##### value - `System.String`

The value for Name

### Template(System.String)

The template which renders the command. By default renders a button. Uses the template for a ToolBar item toolbar.items.template

#### Parameters

##### value - `System.String`

The value for Template

### TemplateId(System.String)

The template which renders the command. By default renders a button. Uses the template for a ToolBar item toolbar.items.template

#### Parameters

##### templateId - `System.String`

The ID of the template element for Template

### TemplateView(Microsoft.AspNetCore.Html.IHtmlContent)

The template which renders the command. By default renders a button. Uses the template for a ToolBar item toolbar.items.template

#### Parameters

##### templateView - `Microsoft.AspNetCore.Html.IHtmlContent`

The view that contains the template for Template

### TemplateHandler(System.String)

The template which renders the command. By default renders a button. Uses the template for a ToolBar item toolbar.items.template

#### Parameters

##### templateHandler - `System.String`

The handler that returs the template for Template

### Template(Kendo.Mvc.UI.Fluent.TemplateBuilder)

The template which renders the command. By default renders a button. Uses the template for a ToolBar item toolbar.items.template

#### Parameters

##### template - TemplateBuilder\<TModel>

A Template component that configures the template.

### Text(System.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.

#### Parameters

##### value - `System.String`

The value for Text
