Checkbox

간단한 2-상태 체크박스입니다.

scheduler.locale.labels.section_checkme = "참여하겠습니다";    
 
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

초기화

라이트박스에 Checkbox 컨트롤을 포함하려면 다음 단계를 따라야 합니다:

  1. 페이지에서 **editors** 익스텐션을 활성화하세요:
    scheduler.plugins({
        editors: true
    });
  2. 라이트박스 설정에 checkbox 섹션을 추가하세요:
    scheduler.config.lightbox.sections = [
        { name:"description", ... },
        { name:"checkme", map_to:"single_checkbox", type:"checkbox", 
        checked_value: "registrable", height:40},
        { name:"time", ...}
    ];
  3. checkbox 섹션의 라벨을 정의하세요:
    scheduler.locale.labels.section_checkme = "참여하겠습니다";

Related sample:  Checkbox in the lightbox

속성

'checkbox' 컨트롤에 일반적으로 사용되는 주요 속성은 다음과 같습니다 (전체 목록은 여기를 참고하세요):

맨 위로