Modal
Group components in an overlay that is shown when the button is clicked. It supports scaling with content or remaining a fixed size with overflow options, and loading and disabled button states.
Events
Events are triggered by user interactions with Modal. Use event handling to trigger queries or other actions in response to events.
NameDescriptionOpenClose
A user opens the component.
A user closes the component.
Methods
Methods for interacting with Modal. You can write JavaScript almost anywhere in Retool and use methods to manipulate data or components.
NameDescriptionscrollIntoView(options: any)open()close()
Scrolls the canvas or parent container so that the selected component appears in the visible area.
Open the modal overlay
Close the modal overlay