Search
WindowState Enumeration
See Also
 






Specifies how a window is displayed.

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

 Syntax

JavaScript  Copy Code

// enum
WindowState = {}

 Members

  Member name Value Description

Maximized

2

Indicates maximized state.

Minimized

1

Indicates minimized state.

Normal

0

Indicates normal state.

 Example

The following code handles the windowOpen event of the Window class and uses the windowState property to check the state:

JavaScript  Copy Code

var u = MindFusion.Common.UI;

window.windowOpen.addEventListener(windowOpenEventHandler);

function windowOpenEventHandler(sender, args)
{
  //if the window is minimized
  if(args.changes.windowState === u.WindowState.Minimized)
      //do something
}

 See Also