Status
A component that displays the status of a task or operation. It supports multiple user-defined states, including icons, colors, and labels.
Properties
Available properties for Status with supported data types or values. You can write JavaScript almost anywhere in Retool to manipulate or read information about components.
The current value.
A list of colors for each item, by index.
The source data for the component.
The tooltip text to display for each item if there is no tooltip already set.
Whether the height automatically resizes to fit content or is a fixed size.
Whether the component is visible.
The horizontal alignment of the contents.
A list of icons for each item, by index.
The position of the icon relative to the label.
The configuration mode for option lists. Either dynamic
for mapped options or static
for manual options.
A list of labels for each item. Falls back to the corresponding value
if no label is provided.
Whether the component takes up space on the canvas if hidden
is true
.
The amount of margin to render outside of the component.
The currently selected value, by index.
The currently selected item.
The label of the currently selected value, by index.
Whether the component remains visible in the editor if hidden
is true
.
A list of tooltips for each item, by index.
A list of possible values.
The vertical alignment of the contents.
Methods
Methods for interacting with Status. You can write JavaScript almost anywhere in Retool and use methods to manipulate data or components.
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.
Set the current value.