Separator
The Separator control displays a line between items or groups of items: a horizontal line between menu options or a vertical line between toolbar controls.
Related sample: Toolbar. Separator
Add Separator
Use the add() method of TreeCollection to add a separator between Toolbar controls:
toolbar.data.add({
type:"separator"
});
Properties
Check the list of properties that you can set in the configuration object of a Separator control.
Show and hide Separator
The show() and hide() methods of Toolbar show and hide a Separator control by its ID:
toolbar.show(id);
toolbar.hide(id);
Related sample: Toolbar. Hide / show items
Check the full list of available operations in the Toolbar API and the TreeCollection API.