How do we get listeners/events of a component?

Let's say I have datatable which has around 10 listeners like click, dblClick.....
How do we get those all listeners.

In webix_debug.js library using "_evs_events" property to get all events.

How can you achieve this?

Comments

  • There is no public API for such operation.

    Can you share why you need the handlers? (if you need to remove them, detachEvent api expects to receive event handler id, not event function itself )

  • detachEvent api expects to receive event handler id, but in my case i don't have event id even though i want to remove an event with name.

    I understand ..
    Thanks for reply

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!