Skip to main content

modeChange

fires on change of the calendar mode

modeChange: (mode: string) => void;

Parameters:

mode: string - the calendar mode ("calendar", "year", "month", "timepicker")

Example

calendar.events.on("ModeChange", function(mode) {   console.log("Selected mode: " + mode);});

Related sample: Calendar. Events