跳转到主要内容

init

Description

这是用于创建 dhtmlxScheduler 实例的构造函数。

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

Parameters

  • container - (required) string | HTMLElement - 用于设置 dhtmlxScheduler 的 HTML 容器(或其 ID)。
  • date - (optional) Date - 调度器的起始日期(默认为当前日期)。
  • view - (optional) string - 初始视图模式(默认为 "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.