This is a horizontal (between menu options) or vertical (between toolbar controls) line separating items/groups of items from each other.
Related sample: Toolbar. Separator
A new Separator can be created with the help of the add() method of Tree Collection:
toolbar.data.add({
type:"separator"
});
Separator can have two attributes:
type | (string) the item type, set it to "separator". If not specified - the "navItem" type is applied by default. |
id | (string) the id of a control, auto-generated if not set |
You can hide and show Separator with the show()/hide() methods of Toolbar by passing the control's id to them:
toolbar.show(id);
toolbar.hide(id);
Related sample: Toolbar. Hide/Show
Check the full list of available operations in the Toolbar API and Tree Collection API.
Back to top