Create widgets for your app

hello !
good job !
really nice :slight_smile:
I have a question !
how to map the button of the widget with a function or event on a screen ? I would like to make an action on the click, how can I do that ?