ShowMonthsButtonChanged: function (sender, args)
sender. Event source.
args. Event information.
The ShowMonthsButtonChanged event handler occurs on changing the value of the MonthCalendar.ShowMonthsButton property.
To execute the example, create the MonthCalendar component (see href="../../components/monthcalendar/example_monthcalendar.htm">Example of Creating the MonthCalendar Component). Add the ShowMonthsButtonChanged event handler:
MC.ShowMonthsButtonChanged.add(function (sender, args)
{
MC.setMode(3)
})
Enter to the browser console:
MC.setShowMonthsButton(false)
Press the ENTER key.
After executing the example the Months button is deleted from the calendar. Calendar is displayed in the Quarters mode.
See also: