The Collapsible Container component for Retool Mobile
A container to group other components.
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.
Type | string | ||||||||
Format | Plain Text | ||||||||
Mutability |
| ||||||||
Allowed Values |
| ||||||||
Default |
|
Examples
collapsedIcon
The icon that's displayed when collapsed.
Type | string | ||||
Mutability |
|
collapsible
Whether collapsible add-ons are configured.
Type | boolean | ||||
Mutability |
|
cornerType
The corner style to use.
Type | string | ||||||||
Mutability |
| ||||||||
Allowed Values |
|
elevation
Whether items are rendered with a raised appearance.
Type | string | ||||||
Mutability |
| ||||||
Allowed Values |
|
events
A list of configured event handlers that trigger actions or queries.
Type | array | ||||
Array values | object | ||||
Mutability |
|
Array Object Properties
expandedIcon
The icon that's displayed when expanded.
Type | string | ||||
Mutability |
|
gap
The gap between components.
Type | string | ||||||||||||||||||||||||
Mutability |
| ||||||||||||||||||||||||
Allowed Values |
|
hidden
Whether this object is hidden from view.
Type | boolean | ||||||
Format | True/False | ||||||
Mutability |
| ||||||
Default |
|
Examples
justify
The horizontal alignment of the contents.
Type | string | ||||||||||
Mutability |
| ||||||||||
Allowed Values |
|
layout
The layout of content.
Type | string | ||||||
Mutability |
| ||||||
Allowed Values |
|
padding
The amount of padding to render inside.
Type | string | ||||||
Format | Plain Text | ||||||
Mutability |
| ||||||
Allowed Values |
| ||||||
Default |
|
Examples
showBorder
Whether to show a border.
Type | boolean | ||||
Format | True/False | ||||
Mutability |
| ||||
Default |
|
Examples
Examples
widthGrowFactor
Sets the width grow factor of a width item's main width size, similar to the flex-grow
CSS property.
Type | unknown |
Mutability | Read-only |
Methods
JavaScript API methods for this object. You can write JavaScript almost anywhere in Retool and use methods to manipulate data and property values.
collapsibleContainer.setHidden()
Set the hidden
value to toggle whether the component is visible. Defaults to true
without a parameter.
collapsibleContainer.setHidden(hidden)
Parameters
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. |