4 * based on jquery fullcalendar
11 * @extends Roo.Component
12 * Bootstrap Calendar class
15 * Create a new Container
16 * @param {Object} config The config object
19 Roo.CalendarPanel = function(config){
22 this.wrapper = Roo.DomHelper.append(document.body, // wrapper for IE7 strict & safari scroll issue
23 {tag: "div", cls: "x-layout-grid-wrapper x-layout-inactive-content"}, true);
25 //this.wrapper.dom.appendChild(grid.getGridEl().dom);
27 Roo.CalendarPanel.superclass.constructor.call(this, this.wrapper, config);
30 this.toolbar.el.insertBefore(this.wrapper.dom.firstChild);
32 // xtype created footer. - not sure if will work as we normally have to render first..
33 if (this.footer && !this.footer.el && this.footer.xtype) {
35 //this.footer.container = this.grid.getView().getFooterPanel(true);
36 //this.footer.dataSource = this.grid.dataSource;
37 //this.footer = Roo.factory(this.footer, Roo);
41 this.on('activate', function()
47 //console.log('render tree');
54 * Fires when a date is selected
55 * @param {DatePicker} this
56 * @param {Date} date The selected date
61 * Fires when the displayed month changes
62 * @param {DatePicker} this
63 * @param {Date} date The selected month
68 * Fires when mouse over an event
69 * @param {Calendar} this
70 * @param {event} Event
75 * Fires when the mouse leaves an
76 * @param {Calendar} this
82 * Fires when the mouse click an
83 * @param {Calendar} this
91 //this.grid.getGridEl().replaceClass("x-layout-inactive-content", "x-layout-component-panel");
94 Roo.extend(Roo.CalendarPanel, Roo.ContentPanel, {
99 setSize : function(width, height){
100 if(!this.ignoreResize(width, height)){
101 var grid = this.grid;
102 var size = this.adjustForComponents(width, height);
103 grid.getGridEl().setSize(size.width, size.height);
108 beforeSlide : function(){
109 this.grid.getView().scroller.clip();
112 afterSlide : function(){
113 this.grid.getView().scroller.unclip();
116 destroy : function(){
117 // this.grid.destroy();
119 Roo.GridPanel.superclass.destroy.call(this);