Raised when the selected view is changed.
Namespace: MindFusion.Common.UI
File: Calendar.js
JavaScript Copy Code |
---|
EventDispatcher viewChanged |
The event handler method receives the following arguments:
sender
A TabControl instance, which is the source of the event. This object will be passed to the handler function as the first argument.
args
A SelectedItemChangedEventArgs instance, which contains event data. This object will be passed to the handler function as the second argument.
The following code creates a calendar and handles its viewChanged event to check if the view is changed to DayView:
JavaScript Copy Code |
---|
var ui = MindFusion.UI; var calendar = new ui.Calendar(document.querySelector("#cal")); function handleViewChanged(sender, args) //if the view has been changed to DayView |