灯箱控件

灯箱是一个用于修改事件详细信息的编辑表单。默认的灯箱如下图所示。

灯箱结构

Sections

灯箱的布局由 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"}
];

sections 数组中的每一项都是一个对象,用于定义灯箱中的特定部分(可用 section 属性)。

Sections 控件

灯箱中的每个 section 都是围绕某个特定控件构建的。灯箱中可以使用以下控件类型:

请注意,无论编辑器的组合如何,'time' 编辑器应始终放在灯箱的最后。

{name:"recurring", height:21, type:"select", map_to:"rec_type", options:[
    {key:"", label:"Do not repeat"},
    {key:"day", label:"Each day"},
    {key:"week", label:"Each week"},
    {key:"month", label:"Each month"}
]}
返回顶部