EditorToolBuilder
Defines the fluent API for configuring EditorToolBuilder settings
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class EditorToolBuilder
Inheritance: objectEditorToolBuilder
Inherited Members
Constructors
EditorToolBuilder method.
Properties
Gets the settings being configured.
protected EditorTool Container { get; }
Methods
Specifies the colors columns for "foreColor" and "backColor" tools when list of colors are defined.
public EditorToolBuilder Columns(double value)
The value for Columns
Returns:Returns the current EditorToolBuilder instance.
The JavaScript function which will be executed when the end-user clicks the tool button.
public EditorToolBuilder Exec(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current EditorToolBuilder instance.
The JavaScript function which will be executed when the end-user clicks the tool button.
public EditorToolBuilder Exec(string handler)
The name of the JavaScript function that will be evaluated.
Returns:Returns the current EditorToolBuilder instance.
Specifies the icon that will be rendered for the tools.
public EditorToolBuilder Icon(string value)
The value for Icon
Returns:Returns the current EditorToolBuilder instance.
For tools that display a list of items (fontName, fontSize, formatting), this option specifies the items in the shown list.
public EditorToolBuilder Items(Action<EditorToolItemFactory> configurator)
The EditorToolItemFactory for the items setting.
Returns:Returns the current instance of EditorToolBuilder .
When specifying a tool as an object, a tool name is required. Please note that "undo" and "redo" are reserved tool names.
public EditorToolBuilder Name(string value)
The value for Name
Returns:Returns the current EditorToolBuilder instance.
Specifies the color palette for "ForeColor" and "BackColor" tools.
public EditorToolBuilder Palette(ColorPickerPalette palette)
The ColorPickerPalette palette.
Returns:A reference to this EditorToolBuilder instance after the call.
Specifies a list of colors for "ForeColor" and "BackColor" tools.
public EditorToolBuilder Palette(IEnumerable<string> colors)
The collection of colors.
Returns:A reference to this EditorToolBuilder instance after the call.
The kendo template that will be used for rendering the given tool.
public EditorToolBuilder Template(string value)
The value for Template
Returns:Returns the current EditorToolBuilder instance.
The kendo template that will be used for rendering the given tool.
public EditorToolBuilder Template<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the template.
Returns:Returns the current EditorToolBuilder instance.
The kendo template that will be used for rendering the given tool.
public EditorToolBuilder TemplateHandler(string templateHandler)
The handler that returs the template for Template
Returns:Returns the current EditorToolBuilder instance.
The kendo template that will be used for rendering the given tool.
public EditorToolBuilder TemplateId(string templateId)
The ID of the template element for Template
Returns:Returns the current EditorToolBuilder instance.
The kendo template that will be used for rendering the given tool.
public EditorToolBuilder TemplateView(IHtmlContent templateView)
The view that contains the template for Template
Returns:Returns the current EditorToolBuilder instance.
The text which will be displayed when the end-user hovers the tool button with the mouse.
public EditorToolBuilder Tooltip(string value)
The value for Tooltip
Returns:Returns the current EditorToolBuilder instance.