Skip to main content

getState

Description

Gets the current state of the scheduler

getState: () => any

Returns

  • state - (object) - the state object

Example

var mode = scheduler.getState().mode;
if(mode == "day"){
// custom logic here
}
else {
// custom logic here
}

Details

The state object reflects inner UI configuration of the scheduler and has the following properties:

note

Note, scheduler's behavior can not be changed by modifying this object.

Need help?
Got a question about the documentation? Reach out to our technical support team for help and guidance. For custom component solutions, visit the Services page.