Title
The Title control displays text on a toolbar.
Related sample: Toolbar. Title
Add Title
Use the add() method of TreeCollection to add a Title control to a toolbar:
toolbar.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 Toolbar show and hide a Title control by its ID:
toolbar.show(id);
toolbar.hide(id);
Related sample: Toolbar. Hide / show items
Add a tooltip
Use the tooltip property to add a tooltip to a Title control:
{
type:"title",
value:"2K",
tooltip:"Your subscribers"
}
Related sample: Toolbar. Tooltips