Check documentation for the latest version of dhtmlxSuite Handling Events DHTMLX Docs

Handling Events

Attaching events

You can attach several handlers to the same event using the method attachEvent():

mySlider.attachEvent("onClick", function(){
    // your code here
});

Several handlers can be attached to one and the same event, and all of them will be executed.

The names of the events are case-insensitive.

Detaching events

To detach an event use the method detachEvent():

mySlider.detachEvent(myEvent);

The list of events

You can find the full list of events in the Slider API.

Related sample:  Events

Back to top