lightbox

lightbox 객체를 지정합니다

object lightbox;

Example

scheduler.config.lightbox.sections=[    
    { name:"description", height:50, type:"textarea", map_to:"text", focus:true},
    { name:"location",    height:43, type:"textarea", map_to:"event_location"},
    { name:"time",        height:72, type:"time",     map_to:"auto"}    
];
...         
scheduler.init('scheduler_here',new Date(2013,2,1),"week");

Related samples

Details

lightbox 객체는 하나의 주요 속성을 포함합니다:

  • sections - (array) lightbox에 표시될 섹션들을 정의합니다
//기본 정의
scheduler.config.lightbox.sections=[
    {name:"description", height:200, map_to:"text", type:"textarea" , focus:true},
    {name:"time", height:72, type:"time", map_to:"auto"}
]

sections 배열의 각 항목은 다음 속성들을 가질 수 있습니다:

'map_to:"auto"'는 무엇을 의미하나요?

'map_to' 속성이 'auto'로 설정되면:

  • 컨트롤 자체가 값을 반환하지 않고, 대신 'set_value()' 메서드를 통해 이벤트의 속성을 직접 업데이트합니다 (자세한 내용은 Custom Lightbox Control 참고).
  • 이는 보통 여러 이벤트 속성을 동시에 처리하는 복잡한 컨트롤에 사용됩니다.
See also
맨 위로