Completed
Last Updated: 21 Aug 2023 12:47 by ADMIN
Release R3.2023-Increment.1(19.July.2023)
Carlhian
Created on: 29 Jun 2023 09:13
Category: Editor
Type: Feature Request
2
Add an overload of the Template() method in the CustomTemplate() configuration to support the Template component

Is it possible to allow the integration of the Template component in the Template() option of the CustomTemplate() configuration in the Editor's Toolbar? 

For example:

@(Html.Kendo().Editor()
          .Name("editor")
          .Tools(tools => tools
                .Clear()
                .CustomTemplate(x => x.Name("customButton").Template(
                  Html.Kendo().Template()
                      .AddComponent(c => c.Button()
                          .Name("myButton")
                          .Events(ev => ev.Click("onExecute"))
                      )
                  ))
          )
)

2 comments
ADMIN
Aleksandar
Posted on: 21 Aug 2023 12:47

Hello,

The functionality is available for UI for ASP.NET MVC and UI for ASP.NET Core as of R2 2023 SP1 (version 2023.2.718).

An example is available in the Editor Custom Tools demo.

Regards,
Aleksandar
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages. If you're new to the Telerik family, be sure to check out our getting started resources, as well as the only REPL playground for creating, saving, running, and sharing server-side code.

ADMIN
Ivan Danchev
Posted on: 06 Jul 2023 08:38

Hello Carlhian,

Currently, the Template option in the Editor's toolbar CustomTemplate accepts only string. If the community is interested in using the Template component in the toolbar, we will consider adding it in a future release. 

Regards,
Ivan Danchev
Progress Telerik

As of R2 2023, the default icon type will be SVG instead of Font. See this blogpost for more information.