MonthCalendar.ShowMonthsButtonChanged

Syntax

ShowMonthsButtonChanged:  function (sender, args)

Parameters

sender. Event source.

args. Event information.

Description

The ShowMonthsButtonChanged event handler occurs on changing the value of the MonthCalendar.ShowMonthsButton property.

Example

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:

MonthCalendar