examples/bootstrap/Graph.js
authormichael <michael@office.ROOJS.COM>
Wed, 19 Nov 2014 07:09:01 +0000 (15:09 +0800)
committermichael <michael@office.ROOJS.COM>
Wed, 19 Nov 2014 07:09:01 +0000 (15:09 +0800)
examples/bootstrap/Graph.js [new file with mode: 0644]

diff --git a/examples/bootstrap/Graph.js b/examples/bootstrap/Graph.js
new file mode 100644 (file)
index 0000000..98114d5
--- /dev/null
@@ -0,0 +1,38 @@
+
+
+Roo.example = Roo.example || {};
+
+Roo.example.Graph = new Roo.XComponent({
+    part     :  ["layout","viewpanel"],
+    order    : '001-viewpanel',
+    region   : '',
+    parent   : '#bootstrap',
+    name     : "unnamed module",
+    disabled : false, 
+    permname : '', 
+    _tree : function()
+    {
+        
+        this.parent = {
+            el : new Roo.bootstrap.Body()
+        }
+        this.parent.el.layout = false;
+        this.parent.el.render(document.body);
+        
+        var _this = this;
+        var MODULE = this;
+        var baseURL = '/web.eventmanager/demo.local.php';
+        
+        return {
+            xtype: 'Body',
+            xns: Roo.bootstrap,
+            items :[
+                {
+                       xtype : 'Graph',
+                       xns: Roo.bootstrap,
+                       html: 'bar chart'
+                 }
+               ]
+       }
+    }
+});