How to remove/pop an event/listener from datatable or any component events/listeners

How to remove/pop an event/listener from datatable or any component events/listeners

Tagged:

Comments

  • The widget level events can be detached with detachEvent API

    https://docs.webix.com/api__link__ui.vscroll_detachevent.html

  • edited February 2

    Thanks for your reply.

    Here my concern is.. I want to detach a event using name, since I don't have event id.

  • And how do we know how many event are there in particular components?

    There is private property "_evs_events" which has all events of components, but no use how to use?

  • not documented, but detachEvent("event_name") should detach all handlers of this event.

  • Here my concern is.. I want to detach a event using name, since I don't have event id.

    The component sometimes use the same event handler for inner logic. Detaching events by name will remove both your custom event and the built in event handlers.

    For custom event, you can modify the code where event is attached and store event reference for future usage.

  • Thanks any way

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!