MonthCalendar.ShowWeeksButtonChanged

Syntax

ShowWeeksButtonChanged: function (sender, args)

Parameters

sender. Event source.

args. Event information.

Description

The ShowWeeksButtonChanged event occurs on changing the value of the MonthCalendar.ShowWeeksButton 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 ShowWeeksButtonChanged event handler

MC.ShowWeeksButtonChanged.add(function (sender, args)

{

    MC.setMode(2)

})

Enter to the browser console:

MC.setShowWeeksButton(false)

Press Enter key.

After executing the example the Weeks button is deleted from the calendar. Calendar is displayed in the months mode.

See also:

MonthCalendar