Separator

This is a control that adds a line separating items/groups of items from each other.

DHX Ribbon with separators

Adding Separator

A separator can be added between menu options:

ribbon.data.add({
    type:"separator"
});

Related sample:  Ribbon. Separator

Attributes

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, automatically generated if you do not set it

Showing/hiding Separator

You can hide and show Separator with the methods of Ribbon:

ribbon.showItem(id);
ribbon.hideItem(id);
Back to top