Checkbox

一个简单的双状态复选框。

scheduler.locale.labels.section_checkme = "I'm going to participate";   
 
scheduler.config.lightbox.sections = [
    { name:"text", height:50, map_to:"text", type:"textarea", focus:true },
    { name:"checkme", map_to:"participation", type:"checkbox", 
    checked_value: "registrable", unchecked_value: "unchecked", height:40 },
    { name:"time", height:72, type:"time", map_to:"auto"}
];

Related sample:  Checkbox in the lightbox

初始化

要在 lightbox 中包含 Checkbox 控件,需要完成以下步骤:

  1. 在页面上启用 editors 扩展:
    scheduler.plugins({
        editors: true
    });
  2. 将复选框区域添加到 lightbox 配置中:
    scheduler.config.lightbox.sections = [
        { name:"description", ... },
        { name:"checkme", map_to:"single_checkbox", type:"checkbox", 
        checked_value: "registrable", height:40},
        { name:"time", ...}
    ];
  3. 为复选框区域定义标签:
    scheduler.locale.labels.section_checkme = "I'm going to participate";

Related sample:  Checkbox in the lightbox

属性

以下是 'checkbox' 控件常用的主要属性(完整列表请参见 这里):

返回顶部