Event handling
Attaching event listeners
You can attach event listeners with the dhxWindow.events.on() method:
dhxWindow.events.on("move", function(position, oldPosition, side) {
console.log("The window is moved to " + position.left, position.top)
});
note
The names of events are case-insensitive.
Related sample: Window. Events
Detaching event listeners
To detach events, use dhxWindow.events.detach():
dhxWindow.events.on("move", function(position, oldPosition, side) {
console.log("The window is moved to " + position.left, position.top)
});
dhxWindow.events.detach("move");
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.