Checkbox Control
이것은 옵션이나 여러 값을 켜고 끄는 데 사용되는 간단한 2-상태 체크박스 컨트롤입니다.
다음과 같은 상황에서 유용하게 사용할 수 있습니다:


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"}
];
초기화
checkbox 컨트롤을 lightbox에 포함하려면 다음 단계를 따라야 합니다:
- lightbox 설정에 섹션을 추가합니다:
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"}
];
- 해당 섹션에 라벨을 정의합니다:
gantt.locale.labels.section_split = "Display";