examples/bootstrap/dashboard3.bjs
authormichael <michael@office.ROOJS.COM>
Tue, 25 Nov 2014 08:49:12 +0000 (16:49 +0800)
committermichael <michael@office.ROOJS.COM>
Tue, 25 Nov 2014 08:49:12 +0000 (16:49 +0800)
examples/bootstrap/dashboard3.js

examples/bootstrap/dashboard3.bjs
examples/bootstrap/dashboard3.js

index 3fdc034..4fdc1ce 100644 (file)
                                                     "Number sm" : 12,
                                                     "items" : [
                                                         {
-                                                            "g_height" : 250,
-                                                            "g_y" : 80,
-                                                            "xtype" : "Graph",
-                                                            "g_r" : 30,
-                                                            "graphtype" : "hbar",
+                                                            "xtype" : "Container",
                                                             "$ xns" : "Roo.bootstrap",
-                                                            "g_width" : 500,
-                                                            "g_x" : 30
+                                                            "items" : [
+                                                                {
+                                                                    "g_height" : 250,
+                                                                    "g_y" : 80,
+                                                                    "xtype" : "Graph",
+                                                                    "g_r" : 30,
+                                                                    "graphtype" : "hbar",
+                                                                    "$ xns" : "Roo.bootstrap",
+                                                                    "g_width" : 500,
+                                                                    "g_x" : 30
+                                                                }
+                                                            ]
                                                         }
                                                     ]
                                                 }
index aa4425e..8e6eb46 100644 (file)
@@ -217,14 +217,22 @@ dashboard3 = new Roo.XComponent({
                                                     items : [
                                                        {
                                                             '|xns' : 'Roo.bootstrap',
-                                                            g_height : 250,
-                                                            g_y : 80,
-                                                            xtype : 'Graph',
-                                                            g_r : 30,
-                                                            graphtype : 'hbar',
+                                                            xtype : 'Container',
                                                             xns : Roo.bootstrap,
-                                                            g_width : 500,
-                                                            g_x : 30
+                                                            items : [
+                                                               {
+                                                                    '|xns' : 'Roo.bootstrap',
+                                                                    g_height : 250,
+                                                                    g_y : 80,
+                                                                    xtype : 'Graph',
+                                                                    g_r : 30,
+                                                                    graphtype : 'hbar',
+                                                                    xns : Roo.bootstrap,
+                                                                    g_width : 500,
+                                                                    g_x : 30
+                                                                }
+                                                            ]
+
                                                         }
                                                     ]