setConfig()
Description
Sets the config parameters of Event Calendar
Usage
setConfig(config: object): void;
Parameters
config
- (required) the object of the Event Calendar configuration. See the full list of the parameters here
tip
Using this method, you can set the configuration parameters of the Event Calendar widget as well as events and calendars data. The method changes only the parameters you passed.
Example
// create Event Calendar
const calendar = new eventCalendar.EventCalendar("#root", {
// configuration parameters
});
// set the configuration parameters of Event Calendar
calendar.setConfig({
config: {
dragCreate: true,
eventInfoOnClick: true,
eventsOverlay: true,
autoSave: true,
dragResize: true,
dragMove: true
},
locale: eventCalendar.ru,
mode: "month"
});