MonthCalendar.ClickNow

Syntax

ClickNow: function (sender, args)

Parameters

sender. Event source.

args. Event information.

Description

The ClickNow event occurs on clicking the Today button.

Example

To execute the example, create the MonthCalendar component (see Example of Creating the MonthCalendar Component). Add the ClickNow event handler:

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

{

     alert(Today + MC.getCurrentDay() + / + MC.getCurrentMonth())

})

After executing the example on clicking the Today button the message concerning the current day and month is displayed.

See also:

MonthCalendar