Alert
An alert component to display information
Properties
Available properties for Alert with supported data types or values. You can write JavaScript almost anywhere in Retool to manipulate or read information about components.
The current state selected for the alert (value
field of a state)
The icon in charge of closing or hiding the full alert
Changes the position of the close icon
Height type of the Alert
Whether the component is visible.
Whether the component takes up space on the canvas if hidden
is true
.
The amount of margin to render outside of the component.
Whether the component remains visible in the editor if hidden
is true
.
Events
Events are triggered by user interactions with Alert. Use event handling to trigger queries or other actions in response to events.
A user clicks the component.
A user closes the component.
Methods
Methods for interacting with Alert. You can write JavaScript almost anywhere in Retool and use methods to manipulate data or components.
Set the current value.
Clear the current value.
Scrolls the canvas or parent container so that the selected component appears in the visible area.
Set the hidden
value to toggle whether the component is visible. Defaults to true
without a parameter.
Reset value
to the default value.