Skip to main content

getCurrentMode()

returns the current mode of displaying Calendar

getCurrentMode(): ViewMode;

Returns:

The current mode of the calendar ("calendar", "year", "month", "timepicker").

Example

var mode = calendar.getCurrentMode(); // -> "calendar"