lightbox
Description
Lightbox 객체를 지정합니다.
lightbox: LightboxSections
Example
gantt.config.lightbox.sections = [
{name:"description", height:38, map_to:"text", type:"textarea",focus:true},
{name:"priority", height:22, map_to:"priority",type:"select",options:opts},
{name:"time", height:72, type:"duration", map_to:"auto"}
];
gantt.init("gantt_here");
Details
lightbox 객체는 한 가지 주요 속성을 포함합니다:
- sections - (배열) - lightbox 내의 섹션들을 정의합니다.
// 기본 lightbox 정의
gantt.config.lightbox.sections=[
{name:"description", height:70, map_to:"text", type:"textarea", focus:true},
{name:"time", height:72, map_to:"auto", type:"duration"}
];
sections 배열 내의 각 객체는 섹션 타입에 따라 다양한 속성을 가질 수 있습니다:
모든 섹션에 공통
- name - (문자열) - 섹션의 식별자입니다 (dhtmlxGantt가 locale.labels 컬렉션에서 라벨을 가져오는 데 사용). 예를 들어, time 섹션은 gantt.locale.labels.section_time에서 라벨을 사용합니다.
- map_to - (문자열) - 섹션이 연결되는 데이터 속성 이름입니다.
- type - (