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
icon
The icon to display if type
is library
.
Examples
svg
The SVG] markup to render if type
is svg
.
url
The URL to the image to display if type
is uri
.
Methods
JavaScript API methods for this object. You can write JavaScript almost anywhere in Retool and use methods to manipulate data and property values.
icon.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. |