开发者

Change start time extensible calendar (extjs)

开发者 https://www.devze.com 2023-04-09 09:56 出处:网络
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.

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

精彩评论

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