Raised when a button in the command strip is clicked.
Namespace: MindFusion.Common.UI
File: DateTimeView.js
SyntaxJavaScript
Copy Code
|
|---|
EventDispatcher buttonClick |
Event DataThe event handler method receives the following arguments:
sender
A DateTimeView 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.
ExampleThe following code creates a calendar and handles its buttonClick event:
JavaScript
Copy Code
|
|---|
var ui = MindFusion.UI; var calendar = new ui.Calendar(document.querySelector("#cal")); function handleButtonClick(sender, args) //if the next button has been clicked |
See Also