on 05-14-2020 1:53 PM
Hi,
I am trying to get JQuery event dispatched on click of a button inside my controller. I need jquery event to get to know the type of event(in case of button its 'tap') . I debugged standard code for button and from call stack i can see in UIArea-dbg.js file it is a tap event which later converts into Press event in Button-dbg.js file inside Button.prototype.ontap function.
EventProvider.dbg.js file has 'EventProvider.prototype.fireEvent' function and inside the function it calls listener function by checking mEventRegistry. Once it is inside the called function it is not possible to know what was the original type of event.
Based on my investigation below is the flow of event -
Native event -> Jquery event -> only srcControl node of Jquery event passed to EventProvider-dbg.js fireEvent method -> fireEvent calls listener function from mEventRegistry
I am sure it should be possible to get event type from SAP UI5 event but dont know how. Can someone please advice?
P.S. - I have use button control to explain my issue but i need to capture event type for any user interaction happen on the screen with any sap ui control.
User | Count |
---|---|
69 | |
8 | |
8 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.