Search
Calendar.selectedDateChanged Event
See Also
 






Raised when the selected date is changed.

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

 Syntax

JavaScript  Copy Code

EventDispatcher selectedDateChanged

 Event Data

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.

 Example

The following code creates a calendar and handles its selectedDateChanged event:

JavaScript  Copy Code

var calendar = new ui.Calendar(document.querySelector("#cal"));
calendar.theme = "gray";
calendar.selectedDateChanged.addEventListener(handleValueChanged);
calendar.render();

function handleValueChanged(sender, args)
{
    if (sender == calendar)
    {
        //do something
    } 
}

 See Also