SchedulerState

Properties

3

Class hierarchy

isSchedulerState: Boolean= truereadonly
Identifies an object as an instance of SchedulerState class, or subclass thereof.
isSchedulerState: Boolean= truereadonlystatic
Identifies an object as an instance of SchedulerState class, or subclass thereof.

State

state: Object

Gets or sets scheduler's state. Check out SchedulerState mixin and GridState for more details.

Events

2

Fired before state is applied to the source. Allows editing the state object or preventing the operation.

// Adding a listener using the "on" method
schedulerState.on('beforeStateApply', ({ state }) => {

});
ParameterTypeDescription
stateSchedulerStateInfo

State object config

Fired before state is saved by the StateProvider. Allows editing the state object or preventing the operation.

// Adding a listener using the "on" method
schedulerState.on('beforeStateSave', ({ state }) => {

});
ParameterTypeDescription
stateSchedulerStateInfo

State object config

Event handlers

2

Called before state is applied to the source. Allows editing the state object or preventing the operation.

new SchedulerState({
    onBeforeStateApply({ state }) {

    }
});
ParameterTypeDescription
stateSchedulerStateInfo

State object config

Called before state is saved by the StateProvider. Allows editing the state object or preventing the operation.

new SchedulerState({
    onBeforeStateSave({ state }) {

    }
});
ParameterTypeDescription
stateSchedulerStateInfo

State object config

Typedefs

1

An object which encapsulates a Scheduler's saved state.

ParameterTypeDescription
state.startDateDate
state.endDateDate
state.eventLayoutString
state.eventStyleString
state.eventColorString
state.barMarginNumber
state.tickSizeNumber
state.fillTicksBoolean
state.zoomLevelNumber
state.modehorizontal | vertical
state.readOnlyBoolean
state.styleString