Search
Window.buttonClick Event
See Also
 






Raised when a button in the command strip of the Window is clicked.

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

 Syntax

JavaScript  Copy Code

EventDispatcher buttonClick

 Event Data

The event handler method receives the following arguments:
sender
A Window instance, which is the source of the event. This object will be passed to the handler function as the first argument.
args
An ItemEventArgs instance, which contains event data. This object will be passed to the handler function as the second argument.

 Example

The following code handles the buttonClick event of the Window class.

JavaScript  Copy Code

var u = MindFusion.Common.UI;

window.buttonClick.addEventListener(buttonClickEventHandler);

function buttonClickEventHandler(sender, args)
{
    if(args.item.title == "Close Form")
    {
         sender.doClose();
    }
}

 See Also