Kendo.Mvc.UI.Fluent.EditorToolBuilder

Defines the fluent API for configuring EditorTool

Methods

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

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

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.

Exec(System.Func<System.Object,System.Object>)

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

Parameters

handler System.Func<System.Object,System.Object>

The handler code wrapped in a text tag.

Items(System.Action<Kendo.Mvc.UI.Fluent.EditorToolItemFactory>)

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

Parameters

configurator System.Action<Kendo.Mvc.UI.Fluent.EditorToolItemFactory>

The configurator for the items setting.

Columns(System.Int32)

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

Parameters

value System.Int32

The value for Columns

Template(System.String)

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

Parameters

value System.String

The value for Template

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