createUnitsView

在调度器中设置 Units 视图

void createUnitsView(object config);
configobjectUnits 视图的配置对象

Available only in PRO Edition

Example

scheduler.createUnitsView({
    name:"unit",
    property:"unit_id",
    list:[
        {key:1, label:"Section A"},
        {key:2, label:"Section B"},
        {key:3, label:"Section C"}  
    ]
});
 
scheduler.init('scheduler_here',new Date(2009,5,30),"unit");
 
scheduler.parse([
 {start_date:"06/30/2009 09:00",end_date:"06/30/2009 12:00",text:"Task1",unit_id:1},
 {start_date:"06/30/2009 12:00",end_date:"06/30/2009 20:00",text:"Task2",unit_id:3},
 {start_date:"06/30/2009 08:00",end_date:"06/30/2009 12:00",text:"Task3",unit_id:2}
],"json");

Applicable views:Units 视图

Related samples

Details

此功能仅在 PRO 版本中可用。

使用此方法前,必须启用 units 插件。

Units 视图的配置对象支持以下属性:

返回顶部