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