Window.getExpandButton

Syntax

getExpandButton ();

Description

The getExpandButton method returns the button that expands the window.

Comments

The button that expands the window is an instance of the RibbonButtonclass.

Example

To execute the example, the HTML page must contain the Window component named win (see Example of Creating the Window Component).

For the window expanding button add the Click event handler: on clicking the button the window will collapse.

//Add a handler of the Click event for the button that expands the window:

win.getExpandButton().Click.add(function(sender, args){

    win.expand(false);

    });

After executing the example on clicking the expand button the window collapses.

See also:

Window