Skip to main content

mode

Description

Optional. An initial view mode of Event Calendar

Usage

mode?: "day" | "week" | "month" | "year" | "agenda"; 

Default config

By default, the mode config is set to the "week" value

mode: "week" 
info

To set the view mode dynamically, you can use the setMode() and setConfig() methods

Example

// create Event Calendar
new eventCalendar.EventCalendar("#root", {
mode: "year"
// other configuration parameters
});

Related sample: Event Calendar. Readonly

Change log: The year and agenda modes were added in v1.1