Skip to main content

Spacer

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

Related sample: Toolbar. Spacer

Adding Spacer

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

toolbar.data.add({
type:"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 show()/hide() methods of Toolbar:

toolbar.show(id);
toolbar.hide(id);

Related sample: Toolbar. Hide / show items

Check the full list of available operations in the Toolbar API and Tree Collection API.