change
fires on change of date selection
change: (date: Date, oldDate: Date, byClick: boolean) => void;
Parameters:
date: Date
- the newly selected dateoldDate: Date
- the previously selected datebyClick: boolean
- defines 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, byClick){
console.log("Change selection from "+oldDate+" to "+date);
console.log(click);
});
Related sample: Calendar. Events