New to Telerik UI for ASP.NET MVC? Start a free 30-day trial

Provides a fluent interface for configuring Editor custom template tools.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class EditorCustomTemplateToolBuilder

Inheritance: objectEditorCustomTemplateToolBuilder

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

C#
public EditorCustomTemplateToolBuilder(EditorCustomTemplateTool tool)
Parameters:toolEditorCustomTemplateTool

Methods

Sets the name of the custom template tool.

C#
public EditorCustomTemplateToolBuilder Name(string value)
Parameters:valuestring

The HTML content of the template.

Returns:

EditorCustomTemplateToolBuilder

Example:
C#
@(Html.Kendo().Editor()
.Name("Editor")
.Tools(tools => tools
.CustomTemplate(x => x..Name("customButton").Template("<button class='k-button'>Save draft</button>"))
)
)

Configures the template of a custom template tool.

C#
public EditorCustomTemplateToolBuilder Template(string value)
Parameters:valuestring

The HTML content of the template.

Returns:

EditorCustomTemplateToolBuilder

Example:
C#
@(Html.Kendo().Editor()
.Name("Editor")
.Tools(tools => tools
.CustomTemplate(x => x.Template("<button class='k-button'>Save draft</button>"))
)
)

Configures the template of a custom template tool.

C#
public EditorCustomTemplateToolBuilder Template<T>(TemplateBuilder<T> template)
Parameters:templateTemplateBuilder<T>Returns:

EditorCustomTemplateToolBuilder