开发者

extjs: display 2weeks as default

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜