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.
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.
hidden
Whether this object is hidden from view.
Examples
Whether to support scrolling beyond the width of the viewport.
Methods
JavaScript API methods for this object. You can write JavaScript almost anywhere in Retool and use methods to manipulate data and property values.
html.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. |