CurrentDateChanged: function (sender, args)
sender. Event source.
args. Event information.
The CurrentDateChanged event occurs on changing the current date using the CurrentDate property.
To execute the example, create the MonthCalendar component (see Example of Creating the MonthCalendar Component). Create the variable that contains the date:
var date = new Date(2000, 10, 10, 10, 0, 0, 0);
Add the CurrentDateChanged event handler:
MC.CurrentDateChanged.add(function (sender, args)
{
alert("Date was changed")
})
Input to the browser console:
MC.setCurrentDate(date);
Press the Enter key: The date in the component is changed, the Date was changed message is displayed.
See also: