Title

This is an item that contains some text.

Adding Title control

A Title control can be added to a sidebar with the help of the add() method of TreeCollection:

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

Attributes

You can provide the following attributes in the configuration object of a Title control:

Showing/hiding title

Title can be hidden and shown with the help of the related methods. Pass the id of a Title control as a parameter.

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

Adding a tooltip

You can add a tooltip to a Title control:

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