Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3458

[SAPUI5] - Get registered events from control

$
0
0

Question:

 

How can I get the registered events from a control?

 

suppose I have a button with a press event, which has an event handler.

From the controller, I know I can use this.getView().byId("buttonid").mEventRegistry.

 

This will return me an object with all bound events of the control.

 

Via Object.Keys I can get an array of the event names, and continue my way.

 

Here's the catch though: mEventRegistry is a private property, which I'm not supposed to use

 

But there isn't any "getEventRegistry()" method.

 

So how can I do this the correct way?


Viewing all articles
Browse latest Browse all 3458

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>