move
fires on moving a window
move: (position: object, oldPosition: object, side: object) => void;
Parameters:
position: object
- an object with the new position of the window. It contains two attributes:left: number
- the left coordinate of the window's position (in pixels)top: number
- the top coordinate of the window's position (in pixels)
oldPosition: object
- an object with the previous position of the window. It contains two attributes:left: number
- the left coordinate of the window's position (in pixels)top: number
- the top coordinate of the window's position (in pixels)
side: object
- an object that specifies the direction of resizing. It contains four directions:left: boolean
- optional, the left directionright: boolean
- optional, the right directiontop: boolean
- optional, the top directionbottom: boolean
- optional, the bottom direction
Example
dhxWindow.events.on("move", function(position, oldPosition, side) {
console.log("The window is moved to " + position.left, position.top)
});
Related sample: Window. Events