Skip to main content

Title

This is an item that contains some text.

Related sample: Toolbar. Title

Adding Title control

A Title control can be added to a toolbar with the help of the add() method of Tree Collection:

toolbar.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 show()/hide() methods. Pass the id of a Title control as a parameter.

toolbar.show(id);
toolbar.hide(id);

Related sample: Toolbar. Hide / show items

Adding a tooltip

You can add a tooltip to a Title control:

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

Related sample: Toolbar. Tooltips