getState()

Required library edition: This method works with any edition of DHTMLX library
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

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
}