Event Handling

Attaching event listeners

You can attach event listeners with the dhxWindow.events.on() method:

dhxWindow.events.on("Move", function(left,top){
    console.log("The window moved to "+left,top)
});

The names of events are case-insensitive.

Related sample:  metaTitle

Detaching event listeners

To detach events, use dhxWindow.events.detach():

var onmove = dhxWindow.events.on("Move", function(left,top){
    console.log("The window moved to "+left,top)
});
 
dhxWindow.events.detach(onmove);

Calling events

To call events, use dhxWindow.events.fire():

dhxWindow.events.fire("name",args);
// where args is an array of arguments

The list of events

The full list of events is available in the related API section.

Back to top