examples/bootstrap/calendar.js
[roojs1] / examples / bootstrap / calendar.js
1
2
3 Roo.example = Roo.example || {};
4
5 Roo.example.calendar = new Roo.XComponent({
6     part     :  ["layout","viewpanel"],
7     order    : '001-viewpanel',
8     region   : '',
9     parent   : '#bootstrap',
10     name     : "unnamed module",
11     disabled : false, 
12     permname : '', 
13     _tree : function()
14     {
15         
16         this.parent = {
17             el : new Roo.bootstrap.Body(),
18         }
19         this.parent.el.layout = false;
20         this.parent.el.render(document.body);
21         
22         var _this = this;
23         var MODULE = this;
24         return {
25             xtype: 'Body',
26             xns: Roo.bootstrap,
27             items : [
28                  {
29                     xtype: 'Calendar',
30                     xns: Roo.bootstrap,
31                     cls : 'col-md-9',
32                     listeners : {
33                         render : function() {
34                             _this.cal = this;
35                         }
36                         
37                     }
38                  }
39             ]
40         };
41     }
42 });