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 - (数组) 定义在 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()' 方法直接更新事件的属性(详见 自定义 Lightbox 控件)。
  • 通常用于同时处理多个事件属性的复杂控件。
See also
返回顶部