Button Group (New)
A component that displays a group of buttons.
Properties
Available properties for Button Group (New) with supported data types or values. You can write JavaScript almost anywhere in Retool to manipulate or read information about components.
The horizontal alignment of the contents.
Whether the height automatically resizes to fit content or is a fixed size.
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 to use a scrolling experience or wrap the visible buttons when heightType
is 'auto'
. Despite the similar name, this does not affect the behavior of the overflow menu.
All buttons after this index are placed in the overflow menu
The maximum height of the dropdown, in px
.
The minimum width of the dropdown, in px
.
Whether the component remains visible in the editor if hidden
is true
.
The text to display in a tooltip on hover or focus.
Events
Events are triggered by user interactions with Button Group (New). Use event handling to trigger queries or other actions in response to events.
A user clicks on one of the buttons.
Methods
Methods for interacting with Button Group (New). 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.