跳转到主要内容

Checkbox

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

checkbox_editor

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"}
];

Checkbox in the lightbox

初始化

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

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

Checkbox in the lightbox

属性

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

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.