Skip to main content

Spacer

This item takes space on the ribbon and is used for aligning controls.

DHX Ribbon spacer

Adding Spacer

A new Spacer can be created with the help of the add() method of Tree Collection:

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

Related sample: Ribbon. Spacer

Properties

You can provide the following properties in the configuration object of a Spacer control.

Showing/hiding spacer

You can hide and show Spacer with the methods of ribbon:

ribbon.show(id);
ribbon.hide(id);