Skip to main content

Checkbox

A two-state check box.

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

Initialization

To add the Checkbox control to the lightbox, follow these steps:

  1. Activate the editors extension on the page:
scheduler.plugins({
editors: true
});
  1. Add the section to the lightbox configuration:
scheduler.config.lightbox.sections = [
{ name:"description", ... },
{ name:"checkme", map_to:"single_checkbox", type:"checkbox",
checked_value: "registrable", height:40},
{ name:"time", ...}
];
  1. Set the label for the section:
scheduler.locale.labels.section_checkme = "I'm going to participate"; 

Checkbox in the lightbox

Properties

The following properties are mostly important and commonly set for the 'checkbox' control (see the full list here):

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.