How do I display a modal after running a query or API successfully ? Currently I am seeing the modal comes with a button to trigger it . But in my case I don't want to display the button . Need to display only the modal after API success.
Hi @dheeraj, happy to help! You can do this by adding an event handler to your query, which will trigger the modal to open on success (see first screenshot). On the modal component itself, you can add hidden={{!modal.opened}} which will hide the button whenever the modal is not open.
Hope this helps! Let me know if you have any questions
1 Like
Is there a way to bring the modal to the center of the screen and disable the components behind the modal?