Links

Open modal programmatically

When working with a modal, you might want to open it via custom interaction - on a button click, a table row click or from a custom JavaScript snippet. Here's how to do that:
  1. 1.
    Add a modal and give it a proper name. That's important since we're going to reference it by this name later.
2. Create a Code action with the following code snippet:
{{ui.myCustomModal.open()}}
3. Similarly, you can close the modal:
{{ui.myCustomModal.close()}}