Skip to main content

setMode()

Description

Sets a view mode of Event Calendar

Usage

setMode({ value: "day" | "week" | "month" | "year" | "agenda" }): void;

Parameters

  • value - (required) a view mode of Event Calendar
info

You can set the value parameter to the "day", "week", "month", "year" or "agenda" modes

Example

// create Event Calendar
const calendar = new eventCalendar.EventCalendar("#root", {
// initial configuration parameters
});
// set the "year" mode
calendar.setMode({ value: "year" });

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