灯箱控件
灯箱是一个用于修改事件详细信息的编辑表单。默认的灯箱如下图所示。
灯箱结构
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 都是围绕某个特定控件构建的。灯箱中可以使用以下控件类型:
- Textarea - 多行文本输入框
- 시간 및 날짜 - 一对用于指定时间范围的日期选择器
- Select - 单选下拉列表
- Template - 包含一些 HTML 内容的 容器
- Multiselect - 一组复选框
- Checkbox - 两态复选框
- Radio - 一组单选按钮
- Combo - 由 DHTMLX Combo 组件实现的组合框
注释
请注意,无论编辑器的组合如何,'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"}
]}
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.