roojs-all.js
[roojs1] / examples / bootstrap / Graph.js
1
2
3 Roo.example = Roo.example || {};
4
5 Roo.example.Graph = 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         var baseURL = '/web.eventmanager/demo.local.php';
25         
26         return {
27             xtype: 'Body',
28             xns: Roo.bootstrap,
29             items :[
30                  {
31                         xtype : 'Graph',
32                         xns: Roo.bootstrap,
33             listeners: {
34                 render: function(){
35                     this.load('hbar',[55, 20, 13, 32, 5, 1, 2, 10,5 , 10]);
36                 }
37             }
38                         
39                  }
40                 ]
41         }
42     }
43 });