Hello,
How can I reference the current component in his event handler area?
somethig like, in a button component, when it's clicked hide it self.
The way I found is having a middle script, so in the button event handle it trigger the js then in to js on success event handle hide the button.

I'm asking for an easier way to achieve that, for every type of component, on their event handle area
Thanks