Dynamically controlling components at run time?

I want to programmatically open/close modals, etc. when a user clicks a button and other events. The way it is now you can bind a button to a small set of pre-defined functions, one being opening a modal.. I want to perform some logic and then show the modal or hide it, etc.. from a runnable. I've perused the docs to no avail and could use some tips. Thanks!! 🙏 -Matthew
2 Replies
Faton
Faton10mo ago
Hi @mateothegreat, You can create a frontend script that opens up a modal using the helper function openModal Then you can trigger the frontend when your runnable succeeded. I've made a simple app with a background script that sleeps for 4 seconds, then triggers the frontend script that opens the modal. See the app attached.
Faton
Faton10mo ago