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.
align
The horizontal alignment of the contents.
Examples
collapsedIcon
The icon that's displayed when collapsed.
collapsible
Whether collapsible add-ons are configured.
elevation
Whether items are rendered with a raised appearance.
events
A list of configured event handlers that trigger actions or queries.
Array Object Properties
event
The event that triggers the action. Refer to the events section for details of available events for this object.
method
The JavaScript method to perform when type
is datasource
, widget
, state
, or localStorage
.
type
The type of action to perform.
expandedIcon
The icon that's displayed when expanded.
gap
The gap between components.
hidden
Whether this object is hidden from view.
Examples
justify
The horizontal alignment of the contents.
padding
The amount of padding to render inside.
Examples
showBody
Whether to show the body.
showBorder
Whether to show a border.
Examples
title
The title text to display.
widthGrowFactor
Sets the width grow factor of a width item's main width size, similar to the flex-grow
CSS property.
Methods
JavaScript API methods for this object. You can write JavaScript almost anywhere in Retool and use methods to manipulate data and property values.
card.setHidden()
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.
Event | Description |
---|
Click | An item is clicked or pressed. |