Custom HTML

This is an item that contains any custom HTML content (for example, an image, icon or other element).

Related sample:  Toolbar. Custom HTML

Adding Custom HTML

Any custom HTML content can be easily added to a toolbar with the help of the add() method of Tree Collection:{
    type: "customHTML",
    html: "<img src='../logo.svg' alt=''/>",
    css: "logo-container"


Working with Custom HTML

You can perform operations over the Custom HTML item with the help of the available Toolbar API and Tree Collection API.

Back to top