Listen to events inside a module

Hi all. Is it possible for an app to listen to events inside a module, so I can for example trigger a query in my app when a button inside a module is clicked?

Thank you!

1 Like

Hey @igoraguiar!

Happy to help here! One option here could be to add a query input to your module and add an event handler on your button to trigger this input query.

For example if your input query looked like this:

Your event handler could look something like this:

Now in the parent app, any query you want run on a particular action within your module you could add as an input query:
Do you think this could work for your use case here?

1 Like

amazing! it worked great! i'm using it to build an on-screen numbers keyboard, like below

We should put this example in the documentation