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"
});

Attributes

Separator can have two attributes:

  • type - (string) the item type, set it to "separator"
  • id - (string) the ID of a control, automatically generated if you do not set it

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.

Back to top