Separator
This is a line separating items/groups of items from each other.
Adding Separator
A new Separator can be created with the help of the add() method of Tree Collection:
sidebar.data.add({
type:"separator"
});
Related sample: Sidebar. Separator
Properties
You can provide the following properties in the configuration object of a Separator control.
Showing/hiding Separator
You can hide and show Separator with the methods of Sidebar by passing the control's id to them:
sidebar.show(id);
sidebar.hide(id);
Check the full list of available operations in the Sidebar API and Tree Collection API.