Search
WindowBase.windowState Property
See Also
 






Gets or sets the state of this Window.

Namespace: MindFusion.Common.UI
File: WindowBase.js

 Syntax

JavaScript  Copy Code

get windowState() {}

 Property Value

One of the WindowState enumeration values. The window state.

 Example

The following code handles the windowOpening event of a Window class.

JavaScript  Copy Code

var u = MindFusion.Common.UI;

window.windowOpening.addEventListener(windowOpeningEventHandler);

function windowOpeningEventHandler(sender, args)
{
  //if the window is minimized
  if(args.changes.windowState === u.WindowState.Minimized)
      args.cancel = true;
}

 See Also