Search
ButtonEventArgs Class
See Also
 






Specifies data for the buttonClick event.

Namespace: MindFusion.Scheduling
File: EventArgs.js

 Syntax

JavaScript  Copy Code

// class
ButtonEventArgs.prototype = {}

 Example

The following example attaches a handler to the buttonClick event of a calendar. In the handler method we check the button that has triggered the action and cancel it.

JavaScript  Copy Code

// attach handler - click of a button
calendar.buttonClick.addEventListener(handleButtonClick);

function handleButtonClick(sender, args) {
    if(args.button == doNotAllowButton)
      {
          //cancel the action
          args.cancel = true;
      }
}

 Inheritance Hierarchy

MindFusion.Scheduling.EventArgs
    MindFusion.Scheduling.CancelEventArgs
        MindFusion.Scheduling.ButtonEventArgs

 See Also