Spacer
An empty area to add space between components. It preserves white space in a layout whenever components positioned above are collapsed, hidden, or resized.
Properties
Available properties for Spacer with supported data types or values. You can write JavaScript almost anywhere in Retool to manipulate or read information about components.
Whether the component is visible.
Whether the component takes up space on the canvas if hidden
is true
.
The amount of margin to render outside of the component.
Whether the component remains visible in the editor if hidden
is true
.
Methods
Methods for interacting with Spacer. You can write JavaScript almost anywhere in Retool and use methods to manipulate data or components.
Scrolls the canvas or parent container so that the selected component appears in the visible area.
Set the hidden
value to toggle whether the component is visible. Defaults to true
without a parameter.