The Modal frame
A container that appears above other content.
You're viewing documentation for classic apps, which use Retool's original app editor. The new app builder is the recommended way to build apps and where Retool focuses new development.
The Modal frame is a container that appears as an overlay in the center of the classic app when visible. You can add multiple instances of the Modal frame that operate independently.
Properties
All properties for this object with supported data types or values. You can write JavaScript almost anywhere in Retool to manipulate or read property values.
enableFullBleed
Whether to expand the contents to fill available space.
| Type | boolean |
| Format | True/False |
| Configurability | Inspector > Appearance > Expand contents to fit |
| Default | false |
Examples
falsetrue
footerPadding
The amount of padding used within the footer.
| Type | string | |||||||||
| Format | Plain Text | |||||||||
| Configurability | Inspector > Content > Add-ons > Footer > Padding | |||||||||
| Allowed Values |
| |||||||||
| Default | 8px 12px |
Examples
false"8px 12px"
headerPadding
The amount of padding used within the header.
| Type | string | |||||||||
| Format | Plain Text | |||||||||
| Configurability | Inspector > Content > Add-ons > Header > Padding | |||||||||
| Allowed Values |
| |||||||||
| Default | 8px 12px |
Examples
false"8px 12px"
hidden
Whether this object is hidden from view.
| Type | boolean |
| Format | True/False |
| Configurability | Inspector > Appearance > Hidden |
| Default | false |
Examples
falsetrue
hideOnEscape
Whether to toggle hidden to true when the Esc key is pressed.
| Type | boolean |
| Format | True/False |
| Configurability | Inspector > Interaction > Advanced > Hide on escape |
| Default | true |
Examples
falsetrue
loading
Whether to display a loading indicator.
| Type | boolean |
| Format | True/False |
| Configurability | Inspector > Interaction > Loading |
| Default | false |
Examples
falsetrue
overlayInteraction
Whether to toggle hidden to true if the user clicks outside of the content area.
| Type | boolean |
| Format | True/False |
| Configurability | Inspector > Interaction > Close when clicking outside |
| Default | true |
Examples
falsetrue
padding
The amount of padding to render inside.
| Type | string | ||||||
| Format | Plain Text | ||||||
| Configurability | Inspector > Spacing > Padding | ||||||
| Allowed Values |
| ||||||
| Default | 4px 8px |
Examples
false4px 8px
showBorder
Whether to show a border.
| Type | boolean |
| Format | True/False |
| Configurability | Inspector > Appearance > Show border |
| Default | false |
Examples
falsetrue
showFooterBorder
Whether to show a border above the footer.
| Type | boolean |
| Format | True/False |
| Configurability | Inspector > Content > Add-ons > Footer > Appearance > Show separator |
| Default | null |
Examples
falsetrue