getCurrentMode()
returns the current mode of displaying Calendar
getCurrentMode(): "calendar" | "year" | "month" | "timepicker";
Returns:
The current mode of the calendar.
Example
const mode = calendar.getCurrentMode(); // -> "calendar"
Related sample: Calendar. Get current mode