SchedulerState
Mixin
A Mixin for Scheduler that handles state. It serializes the following scheduler properties, in addition to what is already stored by its superclass GridState:
- startDate
- endDate
- eventLayout
- barMargin
- mode
- tickSize
- zoomLevel
- eventColor
- eventStyle
- fillTicks
See GridState and State for more information on state.
// Save state
const state = scheduler.state;
localStorage.setItem('schedulerState', JSON.stringify(state));
// Restore state
scheduler.state = JSON.parse(localStorage.getItem('schedulerState'));
See also
- TimelineState - Timeline state mixin
- GridState - Grid state mixin
- State - Base state mixin
No results
Properties
Properties are getters/setters or publicly accessible variables on this class-
Identifies an object as an instance of SchedulerState class, or subclass thereof.
-
Identifies an object as an instance of SchedulerState class, or subclass thereof.
-
Gets or sets scheduler's state. Check out SchedulerState mixin and GridState for more details.