Required library edition: 
Required library file: dhtmlxscheduler.js
returns object with details about current state of the scheduler
mode — current scheduler's mode, e.g. “week”, “month”
date — current date which is shown in scheduler
min_date — events are rendered from this date on the current view
max_date — events are rendered till this date on the current view
editor_id — editor id if it is present
lightbox_id — lightbox id if it is present
new_event - if new event is used (for example if lightbox is displayed for new event or not) (ver. 3.0+)
Note: scheduler's behavior can not be changed by modifying this object.
For example, function can be used the following way:
if (scheduler.getState().mode == "month") {
// custom logic
}