SchedulerState
Properties
3
Properties
3Class hierarchy
Identifies an object as an instance of SchedulerState class, or subclass thereof.
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
Events
2Fired 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 }) => {
});| Parameter | Type | Description |
|---|---|---|
state | SchedulerStateInfo | 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 }) => {
});| Parameter | Type | Description |
|---|---|---|
state | SchedulerStateInfo | State object config |
Event handlers
2
Event handlers
2Called before state is applied to the source. Allows editing the state object or preventing the operation.
new SchedulerState({
onBeforeStateApply({ state }) {
}
});| Parameter | Type | Description |
|---|---|---|
state | SchedulerStateInfo | State object config |
Called before state is saved by the StateProvider. Allows editing the state object or preventing the operation.
new SchedulerState({
onBeforeStateSave({ state }) {
}
});| Parameter | Type | Description |
|---|---|---|
state | SchedulerStateInfo | State object config |
Typedefs
1
Typedefs
1An object which encapsulates a Scheduler's saved state.
| Parameter | Type | Description |
|---|---|---|
state.startDate | Date | |
state.endDate | Date | |
state.eventLayout | String | |
state.eventStyle | String | |
state.eventColor | String | |
state.barMargin | Number | |
state.tickSize | Number | |
state.fillTicks | Boolean | |
state.zoomLevel | Number | |
state.mode | horizontal | vertical | |
state.readOnly | Boolean | |
state.style | String |