getState

gets the current state of the scheduler

object getState();
objectthe state object

Example

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

Related samples

Details

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

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

Back to top