getIsExpanded();
The getIsExpanded method returns whether the window is expanded.
The method returns True if window is expanded, otherwise it returns False.
Expanding of the window occurs on pressing the button.
To execute the example, the HTML page must contain the Window component named win (see Example of creating the Window component). Check window state:
// Check window state if (win.getIsExpanded()) { console.log("Window is expanded"); } else { console.log("Window is not expanded"); }
As a result the console displays check result:
Window is not expanded
See also: