Skip to main content

Modal

The Modal component allows you to display content in a pop-up overlay, helping you focus user attention on specific tasks or messages without navigating away from the current page. It’s commonly used for forms, confirmations, alerts, or detailed views. You can open or close the modal programmatically, control its visibility based on user interaction, and customize its size, position, and content for a seamless user experience.

Restricted components

Certain components, namely Calendar and Kanban, are restricted from being placed within the Modal component.

Properties

Property
Description
Expected Value
HeaderEnable or Disable header section in the modal.Enable/disable the toggle button or dynamically configure the value by clicking on fx and entering a logical expression.
FooterEnable or Disable footer section in the modal.Enable/disable the toggle button or dynamically configure the value by clicking on fx and entering a logical expression.
WidthSelect the width for modal component.Select from dropdown - small, medium, large, fullscreen or dynamically configure the value by clicking on fx and entering a logical expression.
HeightSpecifies the height of the modal.Enter the height in pixel or dynamically configure the value by clicking on fx and entering a logical expression.

Events

EventDescription
On openTriggers whenever the modal is opened.
On closeTriggers whenever the modal is closed.
info

Check Action Reference docs to get detailed information about all the Actions.

Component Specific Actions (CSA)

The following actions of the component can be controlled using the component-specific actions (CSA), you can trigger it using an event or use a RunJS query.

Action
Description
RunJS Query
openOpen a modal.components.modal1.open()
closeClose a modal.components.modal1.close()
setDisableTriggerDisables the modal button.components.modal1.setDisableTrigger()
setDisableModalDisables the modal pop-up.components.modal1.setDisableModal()
setVisibility( )Sets the visibility of the component.components.modal1.setVisibility(false)
setLoading( )Sets the loading state of the component.components.modal1.setLoading(true)

Exposed Variables

Variable
Description
How To Access
showIndicates if the modal is open.{{components.modal1.show}}
isDisabledModalIndicates if the modal is disabled.{{components.modal1.isDisabledModal}}
isDisabledTriggerIndicates if the modal button is disabled.{{components.modal1.isDisabledTrigger}}
isLoadingIndicates if the component is loading.{{components.modal1.isLoading}}
isVisibleIndicates if the component is visible.{{components.modal1.isVisible}}

Trigger

PropertyDescription
Modal trigger visibilitySets the visibility of modal button.
Disable modal triggerDisables modal button.
Use default trigger buttonChoose whether to use the default modal button or not.
Trigger button labelProvide label for the modal button.

Additional Actions

Action
Description
Configuration Options
Loading stateEnables a loading spinner, often used with isLoading to indicate progress.Enable/disable the toggle button or dynamically configure the value by clicking on fx and entering a logical expression.
Disable modal windowDisables the modal pop-up.Enable/disable the toggle button or dynamically configure the value by clicking on fx and entering a logical expression.
Close on escape keyCloses the modal when escape key is pressed.Enable/disable the toggle button or dynamically configure the value by clicking on fx and entering a logical expression.
Close on clicking outsideCloses the modal when clicked outside the modal.Enable/disable the toggle button or dynamically configure the value by clicking on fx and entering a logical expression.
Hide close buttonHides close button from the modal header.Enable/disable the toggle button or dynamically configure the value by clicking on fx and entering a logical expression.
TooltipProvides additional information on hover.String (e.g., Enter your password here. ).

Devices

Property
Description
Expected Value
Show on desktopMakes the component visible in desktop view.You can set it with the toggle button or dynamically configure the value by clicking on fx and entering a logical expression.
Show on mobileMakes the component visible in mobile view.You can set it with the toggle button or dynamically configure the value by clicking on fx and entering a logical expression.