2013-04-22 35 views

回答

3

時間格式必須在時間軸配置對象中指定,其中x_date屬性。 這裏是例子:

scheduler.createTimelineView({ 
    name: "timeline", 
    x_unit: "hour", 
    x_date: "%h:%i %A", 
    x_step: 1, 
    x_size: 24, 
    y_unit: [ 
     {key:1, label:"James Smith"}, 
     {key:2, label:"John Williams"}, 
     {key:3, label:"David Miller"}, 
     {key:4, label:"Linda Brown"} 
    ], 
    y_property: "section_id", 
    render:"bar" 
}); 
+0

取而代之的是sched.Config.hour_date,我使用了timeline.X_Date。謝謝保羅! :) – 2013-04-23 01:02:14

1

下面是的完整解決方案MVC,我用。

var timeline = new TimelineView("timeline", "EmployeeId"); 
timeline.X_Date = "%h:%i %A"; 
相關問題