Skip to main content

Spacer

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

Adding Spacer

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

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

Related sample: Sidebar. 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 sidebar:

sidebar.show(id);
sidebar.hide(id);

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