This item takes space on the ribbon and is used for aligning controls.
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
Spacer can have two attributes:
type | (string) the item type, set it to "spacer". If not specified - the "navItem" type is applied by default. |
id | (string) the id of a control, auto-generated if not set |
You can hide and show Spacer with the methods of ribbon:
ribbon.show(id);
ribbon.hide(id);
Back to top