Spacer preserves white space in a layout whenever components positioned above are collapsed, hidden, or resized.
Properties
All properties for this object with supported data types or values. You can write JavaScript almost anywhere in Retool to manipulate or read property values.
hidden
Whether this object is hidden from view.
Examples
The unique identifier (name).
Examples
isHiddenOnDesktop
Whether to show or hide this object in the desktop layout.
Examples
isHiddenOnMobile
Whether to show or hide this object in the mobile layout.
Examples
maintainSpaceWhenHidden
Whether to take up space on the canvas if hidden
is true
.
Examples
margin
The amount of margin to render outside.
Examples
showInEditor
Whether the component remains visible in the editor if hidden
is true
.
Examples
Methods
JavaScript API methods for this object. You can write JavaScript almost anywhere in Retool and use methods to manipulate data and property values.
Set the hidden
value to toggle whether the component is visible. Defaults to true
without a parameter.
Parameters
hidden
Whether this object is hidden from view.
Examples
Examples
Events
Events triggered by user interactions. You can configure event handlers in the IDE to trigger queries or other actions in response to events.