examples/bootstrap/Dashboard.Sidebar2.bjs.H1A0LX
authorAlan Knowles <alan@roojs.com>
Thu, 11 Sep 2014 07:41:44 +0000 (15:41 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 11 Sep 2014 07:41:44 +0000 (15:41 +0800)
examples/bootstrap/Dashboard.Sidebar2.bjs
examples/bootstrap/Dashboard.Sidebar2.js.N760LX
examples/bootstrap/Dashboard.Sidebar2.js
examples/bootstrap/dashboard1.bjs.S780LX
examples/bootstrap/dashboard1.bjs
examples/bootstrap/dashboard1.js.T190LX
examples/bootstrap/dashboard1.js

examples/bootstrap/Dashboard.Sidebar2.bjs [new file with mode: 0644]
examples/bootstrap/Dashboard.Sidebar2.js [new file with mode: 0644]
examples/bootstrap/dashboard1.bjs
examples/bootstrap/dashboard1.js

diff --git a/examples/bootstrap/Dashboard.Sidebar2.bjs b/examples/bootstrap/Dashboard.Sidebar2.bjs
new file mode 100644 (file)
index 0000000..fe090fa
--- /dev/null
@@ -0,0 +1,60 @@
+{
+    "name" : "Dashboard.Sidebar2",
+    "parent" : "",
+    "title" : "",
+    "path" : "/home/alan/gitlive/roojs1/examples/bootstrap/Dashboard.Sidebar2.bjs",
+    "permname" : "",
+    "modOrder" : "001",
+    "items" : [
+        {
+            "String tag" : "aside",
+            "String cls" : "left-side sidebar-offcanvas",
+            "xtype" : "Container",
+            "$ xns" : "Roo.bootstrap",
+            "items" : [
+                {
+                    "xtype" : "NavSidebar",
+                    "$ xns" : "Roo.bootstrap",
+                    "items" : [
+                        {
+                            "xtype" : "NavGroup",
+                            "$ xns" : "Roo.bootstrap",
+                            "items" : [
+                                {
+                                    "String href" : "#",
+                                    "xtype" : "NavSidebarItem",
+                                    "$ xns" : "Roo.bootstrap",
+                                    "icon" : "fa fa-bar-chart-o",
+                                    "String html" : "test",
+                                    "items" : [
+                                        {
+                                            "String type" : "treeview",
+                                            "xtype" : "Menu",
+                                            "$ xns" : "Roo.bootstrap",
+                                            "* prop" : "menu",
+                                            "items" : [
+                                                {
+                                                    "xtype" : "MenuItem",
+                                                    "$ xns" : "Roo.bootstrap",
+                                                    "String html" : "test"
+                                                }
+                                            ]
+                                        }
+                                    ]
+                                },
+                                {
+                                    "String href" : "#",
+                                    "xtype" : "NavSidebarItem",
+                                    "$ xns" : "Roo.bootstrap",
+                                    "String html" : "test",
+                                    "String badge" : "new",
+                                    "badgecls" : "bg-red"
+                                }
+                            ]
+                        }
+                    ]
+                }
+            ]
+        }
+    ]
+}
\ No newline at end of file
diff --git a/examples/bootstrap/Dashboard.Sidebar2.js b/examples/bootstrap/Dashboard.Sidebar2.js
new file mode 100644 (file)
index 0000000..f90af1a
--- /dev/null
@@ -0,0 +1,72 @@
+//<script type="text/javascript">
+
+// Auto generated file - created by app.Builder.js- do not edit directly (at present!)
+
+Dashboard.Sidebar2 = new Roo.XComponent({
+    part     :  ["bootstrap", "Sidebar2" ],
+    order    : '001-Dashboard.Sidebar-',
+    region   : 'center',
+    parent   : false,
+    name     : "unnamed module",
+    disabled : false, 
+    permname : '', 
+    _tree : function()
+    {
+        var _this = this;
+        var MODULE = this;
+        return {
+            tag : 'aside',
+            cls : 'left-side sidebar-offcanvas',
+            xtype : 'Container',
+            xns : Roo.bootstrap,
+            items : [
+               {
+                    xtype : 'NavSidebar',
+                    xns : Roo.bootstrap,
+                    items : [
+                       {
+                            xtype : 'NavGroup',
+                            xns : Roo.bootstrap,
+                            items : [
+                               {
+                                    menu : {
+                                        type : 'treeview',
+                                        xtype : 'Menu',
+                                        xns : Roo.bootstrap,
+                                        items : [
+                                               {
+                                                xtype : 'MenuItem',
+                                                xns : Roo.bootstrap,
+                                                html : 'test'
+                                            }
+                                        ]
+
+                                    },
+                                    href : '#',
+                                    xtype : 'NavSidebarItem',
+                                    xns : Roo.bootstrap,
+                                    icon : 'fa fa-bar-chart-o',
+                                    html : 'test',
+                                    items : [
+
+                                    ]
+
+                                },
+                               {
+                                    href : '#',
+                                    xtype : 'NavSidebarItem',
+                                    xns : Roo.bootstrap,
+                                    html : 'test',
+                                    badge : 'new',
+                                    badgecls : 'bg-red'
+                                }
+                            ]
+
+                        }
+                    ]
+
+                }
+            ]
+
+        };    }
+});
index 4f8cdc3..acacce4 100644 (file)
                             "String tag" : "aside",
                             "String cls" : "left-side sidebar-offcanvas",
                             "xtype" : "Container",
-                            "$ xns" : "Roo.bootstrap",
-                            "items" : [
-                                {
-                                    "xtype" : "NavSidebar",
-                                    "$ xns" : "Roo.bootstrap",
-                                    "items" : [
-                                        {
-                                            "xtype" : "NavGroup",
-                                            "$ xns" : "Roo.bootstrap",
-                                            "items" : [
-                                                {
-                                                    "String href" : "#",
-                                                    "xtype" : "NavSidebarItem",
-                                                    "$ xns" : "Roo.bootstrap",
-                                                    "icon" : "fa fa-bar-chart-o",
-                                                    "String html" : "test",
-                                                    "items" : [
-                                                        {
-                                                            "String type" : "treeview",
-                                                            "xtype" : "Menu",
-                                                            "$ xns" : "Roo.bootstrap",
-                                                            "* prop" : "menu",
-                                                            "items" : [
-                                                                {
-                                                                    "xtype" : "MenuItem",
-                                                                    "$ xns" : "Roo.bootstrap",
-                                                                    "String html" : "test"
-                                                                }
-                                                            ]
-                                                        }
-                                                    ]
-                                                },
-                                                {
-                                                    "String href" : "#",
-                                                    "xtype" : "NavSidebarItem",
-                                                    "$ xns" : "Roo.bootstrap",
-                                                    "String html" : "test",
-                                                    "String badge" : "new",
-                                                    "badgecls" : "bg-red"
-                                                }
-                                            ]
-                                        }
-                                    ]
-                                }
-                            ]
+                            "* xinclude" : "Dashboard.Sidebar2",
+                            "$ xns" : "Roo.bootstrap"
                         }
                     ]
                 }
index 43047e9..bc5262d 100644 (file)
@@ -90,61 +90,12 @@ dashboard1 = new Roo.XComponent({
                     'flexy:include' : 'Sidebar.html',
                     xns : Roo.bootstrap,
                     items : [
-                       {
+                       Roo.apply(Dashboard.Sidebar2._tree(), {
                             tag : 'aside',
                             cls : 'left-side sidebar-offcanvas',
                             xtype : 'Container',
-                            xns : Roo.bootstrap,
-                            items : [
-                               {
-                                    xtype : 'NavSidebar',
-                                    xns : Roo.bootstrap,
-                                    items : [
-                                       {
-                                            xtype : 'NavGroup',
-                                            xns : Roo.bootstrap,
-                                            items : [
-                                               {
-                                                    menu : {
-                                                        type : 'treeview',
-                                                        xtype : 'Menu',
-                                                        xns : Roo.bootstrap,
-                                                        items : [
-                                                               {
-                                                                xtype : 'MenuItem',
-                                                                xns : Roo.bootstrap,
-                                                                html : 'test'
-                                                            }
-                                                        ]
-
-                                                    },
-                                                    href : '#',
-                                                    xtype : 'NavSidebarItem',
-                                                    xns : Roo.bootstrap,
-                                                    icon : 'fa fa-bar-chart-o',
-                                                    html : 'test',
-                                                    items : [
-
-                                                    ]
-
-                                                },
-                                               {
-                                                    href : '#',
-                                                    xtype : 'NavSidebarItem',
-                                                    xns : Roo.bootstrap,
-                                                    html : 'test',
-                                                    badge : 'new',
-                                                    badgecls : 'bg-red'
-                                                }
-                                            ]
-
-                                        }
-                                    ]
-
-                                }
-                            ]
-
-                        }
+                            xns : Roo.bootstrap
+                        })
                     ]
 
                 }