EditorCustomTemplateToolBuilder

Methods

Template(System.String)

Configures the template of a custom template tool.

Parameters

value - System.String

The HTML content of the template.

Example

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

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

Parameters

template - TemplateBuilder<T>

Name(System.String)

Sets the name of the custom template tool.

Parameters

value - System.String

The HTML content of the template.

Example

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