New to Telerik UI for ASP.NET Core? Download free 30-day trial

EditorCustomTemplateToolBuilder

Methods

Template(System.String)

Configures the template of a custom template tool.

Parameters

value - System.String

The HTML content of the template.

Example


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

Template(Kendo.Mvc.UI.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


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

In this article
Not finding the help you need?