Skip to main content

Title

The Title control displays text on a sidebar.

Sidebar Title control displaying an app name text label in DHTMLX Suite

Add Title​

Use the add() method of TreeCollection to add a Title control to a sidebar:

sidebar.data.add({
type: "title",
value: "APP NAME"
});

Properties​

Check the list of properties that you can set in the configuration object of a Title control.

Show and hide Title​

The show() and hide() methods of Sidebar show and hide a Title control by its ID:

sidebar.show(id);
sidebar.hide(id);

Add a tooltip​

Use the tooltip property to add a tooltip to a Title control:

{
type:"title",
value:"2K",
tooltip:"Your subscribers"
}