# EditorToolBuilder

## Methods

### Palette(System.Collections.Generic.IEnumerable)

Specifies a list of colors for "ForeColor" and "BackColor" tools.

#### Parameters

##### colors - `System.Collections.Generic.IEnumerable<String>`

The collection of colors.

#### RETURNS

A reference to this [EditorToolBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/editortoolbuilder) instance after the call.

#### Example

```
 
             @(Html.Kendo().Editor()
               .Name("Editor")
               .Tools(tools => tools
                    .ForeColor(config => config.Palette(new string[] { "#ffffff", "#ffff00", "#db9791" }))
                    .BackColor(config => config.Palette(new string[] { "#ffffff", "#ffff00", "#db9791" }))
               )
             )
             
```

### Palette(Kendo.Mvc.UI.ColorPickerPalette)

Specifies the color palette for "ForeColor" and "BackColor" tools.

#### Parameters

##### palette - [ColorPickerPalette](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui/colorpickerpalette)

The ColorPickerPalette palette.

#### RETURNS

A reference to this [EditorToolBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/editortoolbuilder) instance after the call.

#### Example

```
 
             @(Html.Kendo().Editor()
               .Name("Editor")
               .Tools(tools => tools
                    .ForeColor(config => config.Palette(ColorPickerPalette.WebSafe))
                    .BackColor(config => config.Palette(ColorPickerPalette.Basic))
               )
             )
             
```

### Name(System.String)

When specifying a tool as an object, a tool name is required. Please note that "undo" and "redo" are reserved tool names.

#### Parameters

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

The value for Name

#### RETURNS

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

### Tooltip(System.String)

The text which will be displayed when the end-user hovers the tool button with the mouse.

#### Parameters

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

The value for Tooltip

#### RETURNS

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

### Exec(System.String)

The JavaScript function which will be executed when the end-user clicks the tool button.

#### Parameters

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

The name of the JavaScript function that will be evaluated.

#### RETURNS

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

### Exec(System.Func)

The JavaScript function which will be executed when the end-user clicks the tool button.

#### Parameters

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

The handler code wrapped in a text tag.

#### RETURNS

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

### Items(System.Action)

For tools that display a list of items (fontName, fontSize, formatting), this option specifies the items in the shown list.

#### Parameters

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

The configurator for the items setting.

#### RETURNS

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

### Columns(System.Double)

Specifies the colors columns for "foreColor" and "backColor" tools when list of colors are defined.

#### Parameters

##### value - `System.Double`

The value for Columns

#### RETURNS

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

### Template(System.String)

The kendo template that will be used for rendering the given tool.

#### Parameters

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

The value for Template

#### RETURNS

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

### TemplateId(System.String)

The kendo template that will be used for rendering the given tool.

#### Parameters

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

The ID of the template element for Template

#### RETURNS

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

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

The kendo template that will be used for rendering the given tool.

#### Parameters

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

The view that contains the template for Template

#### RETURNS

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

### TemplateHandler(System.String)

The kendo template that will be used for rendering the given tool.

#### Parameters

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

The handler that returs the template for Template

#### RETURNS

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

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

The kendo template that will be used for rendering the given tool.

#### Parameters

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

A Template component that configures the template.

#### RETURNS

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

### Icon(System.String)

Specifies the icon that will be rendered for the tools.

#### Parameters

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

The value for Icon

#### RETURNS

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