ShowHalfYearsButtonChanged: function (sender, args)
sender. Event source.
args. Event information.
The ShowHalfYearsButtonChanged event occurs on changing the value of the MonthCalendar.ShowHalfYearsButton property.
To execute the example, create the MonthCalendar component (see href="../../components/monthcalendar/example_monthcalendar.htm">Example of Creating the MonthCalendar Component). Add the ShowHalfYearsButtonChanged event handler:
MC.ShowHalfYearsButtonChanged.add(function (sender, args)
{
alert("HalfYears Button disappeared")
})
Enter to the browser console:
MC.setShowHalfYearsButton(false)
Press Enter key.
The following message is displayed after executing the example: HalfYears Button disappeared. The Half years button is deleted.
See also: