跳转到主要内容

lightbox

Description

指定 lightbox 对象

lightbox: any

Example

scheduler.config.lightbox.sections = [
{ name: "description", height: 50, type: "textarea", map_to: "text", focus: true },
{ name: "location", height: 43, type: "textarea", map_to: "event_location" },
{ name: "time", height: 72, type: "time", map_to: "auto" }
];
...
scheduler.init('scheduler_here', new Date(2027, 2, 1), "week");

Details

lightbox 对象包含一个主要属性:

  • sections - (array) specifies the lightbox sections
//默认定义
scheduler.config.lightbox.sections = [
{ name: "description", height: 200, map_to: "text", type: "textarea", focus: true },
{ name: "time", height: 72, type: "time", map_to: "auto" }
];

Each object in the sections array can have the following properties:

'map_to:"auto"' 是什么意思?

map_to 属性设置为 auto 时:

  • 控件本身不返回值,而是通过 set_value() 方法直接更新事件的属性(详见 Custom Lightbox Control)。
  • 通常用于同时处理多个事件属性的复杂控件。
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.