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.
加载中,请稍侯......
精彩评论