change

fires on change of date selection

void change(Date date,Date oldDate,boolean click){ ... };

Parameters

dateDatethe newly selected date
oldDateDatethe previously selected date
clickbooleandefines whether the change happened because of a click on a date (true), or due to an API call (false)

Example

calendar.events.on("Change",function(date, oldDate, click){
    console.log("Change selection from "+oldDate+" to "+date);
    console.log(click);
});

Related samples

See also
Back to top