v7.3.0

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

No results

Properties

Properties are getters/setters or publicly accessible variables on this class

Functions

Functions are methods available for calling on the class

    Events

    Events are triggered for certain actions in this class and can be listened for to react to those actions in your code

    Event handlers

    Event handlers are callbacks called as a result of certain actions in this class

    Type definitions

    Source path

    Scheduler/view/mixin/SchedulerState.js

    Contents