Open modal programmatically
- 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:
3. Similarly, you can close the modal: