Skip to main content

Custom HTML

The Custom HTML control displays custom HTML content, such as an image, an icon, or another element.

Ribbon custom HTML item showing a user avatar and name label in DHTMLX Suite

Related sample: Ribbon. Custom HTML

Add a Custom HTML control​

Use the add() method of TreeCollection to add custom HTML content to a ribbon:

ribbon.data.add({
type: "customHTML",
html: "<div id='preloader'><div id='loader'></div></div >"
});

Related sample: Ribbon. Custom HTML

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 Ribbon API and the TreeCollection API to work with a Custom HTML control.