Multiselect
여러 개의 체크 박스로 구성된 컨트롤입니다.

노트
라이트 박스에서 컨트롤을 사용하려면 다중 선택 확장을 활성화하십시오.
scheduler.plugins({
multiselect: true /*!*/
});
scheduler.locale.labels.section_userselect = "참여자";
scheduler.config.lightbox.sections = [
{ name:"description", height:50, map_to:"text", type:"textarea", focus:true },
{ name:"userselect", height:22, map_to:"user_id", type:"multiselect",
options: scheduler.serverList("users"), vertical:"false" },
{ name:"time", height:72, type:"time", map_to:"auto"}
];
Initialization
다중 선택 컨트롤을 라이트박스에 추가하려면 아래 절차를 따르세요:
- 페이지에서 'multiselect' 확장을 활성화합니다:
scheduler.plugins({
multiselect: true
});
- 라이트박스 구성에 섹션을 추가합니다:
scheduler.config.lightbox.sections = [
{ name:"description", ... },
{ name:"userselect", height:22, map_to:"user_id", type:"multiselect",
options: scheduler.serverList("user_id"), vertical:false },
{ name:"time", ...}
];
- 섹션의 레이블을 설정합니다:
scheduler.locale.labels.section_userselect = "참여자";
Properties
다음 속성은 주로 다중 선택 컨트롤에 대해 중요하고 일반적으로 설정됩니다(전체 목록은 여기를 참조하세요):
| name | (string) 섹션의 이름 |
| height | (number) 섹션의 높이 |
| map_to | (string) 섹션에 매핑될 데이터 속성의 이름 |
| type | (textarea,time,select,template,multiselect,radio,checkbox,combo) 섹션 컨트롤의 유형 |
| options | (array of objects) 컨트롤의 선택 옵션을 정의합니다 (선택, 다중 선택, 라디오, 콤보 컨트롤에 해당). 배열의 각 객체는 단일 옵션을 정의하며 다음 속성을 가집니다:
|
| script_url | (string) 다중 선택의 옵션을 로드하는 서버 측 스크립트의 경로. 동적 모드에서만 사용. 선택적 |
| vertical | (boolean) 다중 선택 버튼을 수직(true)으로 배치할지 수평(다중 선택 및 라디오 컨트롤에 해당)으로 배치할지 설정 |
| delimiter | (string) 다중 선택 값들을 구분하는 구분자를 지정합니다. 이 속성이 설정되지 않으면 section_delimiter 구성이 적용됩니다 |