MonthCalendar.ShowDaysButtonChanged

Syntax

ShowDaysButtonChanged: function (sender, args)

Parameters

sender. Event source.

args. Event information.

Description

The ShowDaysButtonChanged event occurs on changing the value of the MonthCalendar.ShowDaysButton 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 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:

MonthCalendar