Skip to main content

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 direction
    • right: boolean - optional, the right direction
    • top: boolean - optional, the top direction
    • bottom: 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