Raised when a navigation button is clicked.
Namespace: MindFusion.Scheduling
File: Calendar.js
JavaScript Copy Code |
---|
EventDispatcher buttonClick |
The event handler method receives the following arguments:
sender
A Calendar instance, which is the source of the event. This object will be passed to the handler function as the first argument.
args
A ButtonEventArgs instance, which contains event data. This object will be passed to the handler function as the second argument.
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 function handleButtonClick(sender, args) { |