ShowNowButtonChanged: function (sender, args)
sender. Event source.
args. Event information.
The ShowNowButtonChanged event handler occurs on changing the value of the MonthCalendar.ShowNowButton property.
To execute the example, create the MonthCalendar component (see href="../../components/monthcalendar/example_monthcalendar.htm">Example of Creating the MonthCalendar Component). Add the ShowNowButtonChanged event handler:
MC.ShowNowButtonChanged.add(function (sender, args)
{
alert("Now button disappeared")
})
Enter to the browser console:
MC.setShowNowButton(false)
Press Enter key.
After executing the example the Today button is deleted from the calendar. The Now button disappeared message is displayed.
See also: