开发者

Change start time extensible calendar (extjs)

I trying an extjs component (extensible calendar)

http://ext.ensible.com/

I want change the start time in day view become 4.30, but the data doesn't show after 23:00.

开发者_运维技巧

This is make me crazy T.T

Please, any suggestion please...


set the viewStartHour : Integer config of the day view.

Read docs here


Set viewStartHour and viewEndHour on fly !!

var cal = Ext.ComponentQuery.query('#app-calendar')[0];
var activeView = cal.getActiveView();

activeView.body.viewStartHour = 6; //you most use an variable!!
activeView.body.viewEndHour = 12;

activeView.body.tpl.viewStartHour = 6;
activeView.body.tpl.viewEndHour = 12;
activeView.body.tpl.constructor();

activeView.body.refresh(false);

Enjoy!!!!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜