跳转到主要内容

init

Description

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

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

Parameters

  • container - (required) string | HTMLElement - 一个 HTML 容器(或其 ID),将在其中初始化一个 dhtmlxScheduler 对象
  • date - (optional) Date - 调度器的初始日期,默认情况下为当前日期
  • view - (optional) string - 初始视图的名称,默认值为 "week"

Example

scheduler.init("scheduler_here", new Date(2027, 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.