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()
48 //console.log('render tree');
55 * Fires when a date is selected
56 * @param {DatePicker} this
57 * @param {Date} date The selected date
62 * Fires when the displayed month changes
63 * @param {DatePicker} this
64 * @param {Date} date The selected month
69 * Fires when mouse over an event
70 * @param {Calendar} this
71 * @param {event} Event
76 * Fires when the mouse leaves an
77 * @param {Calendar} this
83 * Fires when the mouse click an
84 * @param {Calendar} this
92 //this.grid.getGridEl().replaceClass("x-layout-inactive-content", "x-layout-component-panel");
95 Roo.extend(Roo.CalendarPanel, Roo.ContentPanel, {
100 setSize : function(width, height){
101 if(!this.ignoreResize(width, height)){
102 var grid = this.grid;
103 var size = this.adjustForComponents(width, height);
104 grid.getGridEl().setSize(size.width, size.height);
109 beforeSlide : function(){
110 this.grid.getView().scroller.clip();
113 afterSlide : function(){
114 this.grid.getView().scroller.unclip();
117 destroy : function(){
118 // this.grid.destroy();
120 Roo.GridPanel.superclass.destroy.call(this);
127 Roo.log("render calendar");