toolbar.items.templateString|Function
Specifies what element will be added in the ToolBar wrapper. Items with template does not have a type.
Example
<div id="imageEditor"></div>
<script>
$("#imageEditor").kendoImageEditor({
toolbar: {
items: [
{
template: (data) => `<button class="k-button">Custom: ${data.text || 'Button'}</button>`,
click: function() { console.log("Template button clicked"); }
}
]
}
});
</script>
In this article