Skip to main content

init

Description

A constructor of a dhtmlxScheduler object

init: (container: string|HTMLElement, date?: Date, view?: string) => void

Parameters

  • container - (required) string | HTMLElement - an HTML container (or its id) where a dhtmlxScheduler object will be initialized
  • date - (optional) Date - the initial date of the scheduler (by default, the current date)
  • view - (optional) string - the name of the initial view (by default, "week")

Example

scheduler.init("scheduler_here",new Date(2010,0,6),"month");
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.