fires before a window is shown
beforeShow: (position: IPosition) => boolean | void;
position: object- an object with coordinates of the window's position
true to show a window,
false to block showing a window.
console.log("A window will be shown");
Related sample: Window. Events
The position parameter 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)
The position parameter has been added in v7.0.