Custom HTML
The Custom HTML control displays custom HTML content, such as an image, an icon, or another element.
Related sample: Toolbar. Custom HTML
Add a Custom HTML control
Use the add() method of TreeCollection to add custom HTML content to a toolbar:
toolbar.data.add({
type: "customHTML",
html: "<img src='../logo.svg' alt=''/>",
css: "logo-container"
});
Properties
Check the list of properties that you can set in the configuration object of a Custom HTML control.
Work with a Custom HTML control
Use the Toolbar API and the TreeCollection API to work with a Custom HTML control.