MonthCalendar.ShowNowButtonChanged

Syntax

ShowNowButtonChanged: function (sender, args)

Parameters

sender. Event source.

args. Event information.

Description

The ShowNowButtonChanged event handler occurs on changing the value of the MonthCalendar.ShowNowButton 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 ShowNowButtonChanged event handler:

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

{

     alert("Now button disappeared")

})

Enter to the browser console:

MC.setShowNowButton(false)

Press Enter key.

After executing the example the Today button is deleted from the calendar. The Now button disappeared message is displayed.

See also:

MonthCalendar