开发者

extjs: display 2weeks as default

开发者 https://www.devze.com 2023-02-18 22:37 出处:网络
I am testing with Extjs demo. http://ext.ensible.c开发者_如何转开发om/deploy/dev/examples/calendar/remote.html

I am testing with Extjs demo. http://ext.ensible.c开发者_如何转开发om/deploy/dev/examples/calendar/remote.html

How i can display 2weeks as a default instead of month in that demo?

Thank you.


You should be able to just set the showMultiWeekView config option to true in your CalendarPanel. You could optionally specify the multiWeekViewCfg to define how many weeks you want to show, but by default it uses a two week period.

For example:

var cp = new Ext.ensible.cal.CalendarPanel({
    //other properties...
    showMultiWeekView: true,
    multiWeekViewCfg: { //not necessary, but included for reference.
        weekCount: 2
    }
});

Take a look at the documentation for the CalendarPanel.

0

精彩评论

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