Skip to main content

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"
});

Properties

You can provide the following properties 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"
}