A two-state checkbox. The control is used for switching an option or several values on/off.
For example, it is helpful for:

Related sample: Checkbox control

gantt.config.lightbox.project_sections = [
    {name: "description", height: 70, map_to: "text", type: "textarea", focus: true},
    {name: "split", type:"checkbox", map_to: "render", options:[            {key:"split", label:"Split Task"}                                                      ]},                                                                 {name: "time", type: "duration", readonly: true, map_to: "auto"}
];
To add the checkbox control to the lightbox, follow these steps:
1) Add a section to the lightbox configuration:
var opts = [
    {key:"split", label:"Split Task"}                                       
];
 
gantt.config.lightbox.sections = [
    {name: "description", height: 70, map_to: "text", type: "textarea", focus: true},
    {name: "split", type:"checkbox", map_to: "render", options:opts},               {name: "time", type: "duration", readonly: true, map_to: "auto"}
];
2) Set a label for the section:
gantt.locale.labels.section_split = "Display";
The following properties are mostly important and commonly set for the checkbox control (see the full list here):
Generally, to set values for the checkbox control, use the options parameter:
gantt.config.lightbox.sections = [
    {name: "split", type:"checkbox", map_to: "render", options:[
        {key:"split", label:"Split Task"}
    ]}                                                                
];
Items in the options parameter have 2 mandatory properties: