Split Button
A dropdown menu of options to trigger queries and other actions. It supports manual configuration or mapped evaluation of options, loading and disabled states, and solid and outline styles.
Properties
Available properties for Split Button with supported data types or values. You can write JavaScript almost anywhere in Retool to manipulate or read information about components.
A list of captions for each item, by index.
Whether the component has an enabled Click event handler.
The source data for the component.
Whether user input, interaction, or selection is disabled.
A list of boolean values for each item, by index, that reflect whether they are disabled.
Whether the component is visible.
A list of boolean values for each item, by index, that reflect whether they are hidden.
The horizontal alignment of the contents.
A list of icons for each item, by index.
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 to display a loading indicator.
Whether the component takes up space on the canvas if hidden
is true
.
The amount of margin to render outside of the component.
The maximum height of the dropdown, in px
.
The minimum width of the dropdown, in px
.
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
.
Whether to display an icon next to a selected item.
The current variant used to style the component.
A list of tooltips for each item, by index.
The text to display in a tooltip on hover or focus.
Events
Events are triggered by user interactions with Split Button. Use event handling to trigger queries or other actions in response to events.
A user clicks the component.
Methods
Methods for interacting with Split Button. 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.
Set the disabled
value to toggle whether the input field is disabled. Defaults to true
without a parameter.