ShowDaysButtonChanged: function (sender, args)
sender. Event source.
args. Event information.
The ShowDaysButtonChanged event occurs on changing the value of the MonthCalendar.ShowDaysButton property.
To execute the example, create the MonthCalendar component (see href="../../components/monthcalendar/example_monthcalendar.htm">Example of Creating the MonthCalendar Component). Add the ShowDaysButtonChanged event handler:
MC.ShowDaysButtonChanged.add(function (sender, args)
{
MC.setMode(PP.MonthCalendar.Mode.Weeks)
})
Input to the browser console:
MC.setShowDaysButton(false)
Press Enter key.
After executing the example the Days button is deleted from the calendar. The calendar is displayed in the weeks mode.
See also: