examples/bootstrap/Dashboard.Header1.bjs.M8RGMX
authorAlan Knowles <alan@roojs.com>
Thu, 11 Sep 2014 07:48:55 +0000 (15:48 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 11 Sep 2014 07:48:55 +0000 (15:48 +0800)
examples/bootstrap/Dashboard.Header1.bjs
examples/bootstrap/Dashboard.Header1.js.Q4SGMX
examples/bootstrap/Dashboard.Header1.js
examples/bootstrap/dashboard1.bjs.7BCGMX
examples/bootstrap/dashboard1.bjs
examples/bootstrap/dashboard1.js.UYBGMX
examples/bootstrap/dashboard1.js

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

diff --git a/examples/bootstrap/Dashboard.Header1.bjs b/examples/bootstrap/Dashboard.Header1.bjs
new file mode 100644 (file)
index 0000000..47327c7
--- /dev/null
@@ -0,0 +1,70 @@
+{
+    "name" : "Dashboard.Header1",
+    "parent" : "",
+    "title" : "",
+    "path" : "/home/alan/gitlive/roojs1/examples/bootstrap/Dashboard.Header1.bjs",
+    "permname" : "",
+    "modOrder" : "001",
+    "items" : [
+        {
+            "String cls" : "header",
+            "tag" : "header",
+            "xtype" : "Container",
+            "$ xns" : "Roo.bootstrap",
+            "items" : [
+                {
+                    "String cls" : "logo",
+                    "xtype" : "Link",
+                    "$ xns" : "Roo.bootstrap",
+                    "String html" : "test"
+                },
+                {
+                    "Boolean bar" : true,
+                    "String position" : "static-top",
+                    "xtype" : "NavHeaderbar",
+                    "tag" : "nav",
+                    "$ xns" : "Roo.bootstrap",
+                    "items" : [
+                        {
+                            "String cls" : "navbar-btn sidebar-toggle",
+                            "xtype" : "Link",
+                            "$ xns" : "Roo.bootstrap",
+                            "String html" : "<span class=\"icon-bar\"></span><span class=\"icon-bar\"></span><span class=\"icon-bar\"></span>"
+                        },
+                        {
+                            "xtype" : "NavGroup",
+                            "String align" : "right",
+                            "$ xns" : "Roo.bootstrap",
+                            "items" : [
+                                {
+                                    "xtype" : "NavItem",
+                                    "$ xns" : "Roo.bootstrap",
+                                    "String html" : "test",
+                                    "items" : [
+                                        {
+                                            "xtype" : "Menu",
+                                            "$ xns" : "Roo.bootstrap",
+                                            "* prop" : "menu",
+                                            "items" : [
+                                                {
+                                                    "xtype" : "MenuItem",
+                                                    "$ xns" : "Roo.bootstrap",
+                                                    "String html" : "test"
+                                                }
+                                            ]
+                                        }
+                                    ]
+                                },
+                                {
+                                    "xtype" : "NavItem",
+                                    "$ xns" : "Roo.bootstrap",
+                                    "String html" : "test"
+                                }
+                            ]
+                        }
+                    ]
+                }
+            ]
+        }
+    ]
+}
\ No newline at end of file
diff --git a/examples/bootstrap/Dashboard.Header1.js b/examples/bootstrap/Dashboard.Header1.js
new file mode 100644 (file)
index 0000000..6136bfb
--- /dev/null
@@ -0,0 +1,82 @@
+//<script type="text/javascript">
+
+// Auto generated file - created by app.Builder.js- do not edit directly (at present!)
+
+Dashboard.Header1 = new Roo.XComponent({
+    part     :  ["bootstrap", "Header1" ],
+    order    : '001-Dashboard.Header-',
+    region   : 'center',
+    parent   : false,
+    name     : "unnamed module",
+    disabled : false, 
+    permname : '', 
+    _tree : function()
+    {
+        var _this = this;
+        var MODULE = this;
+        return {
+            cls : 'header',
+            tag : 'header',
+            xtype : 'Container',
+            xns : Roo.bootstrap,
+            items : [
+               {
+                    cls : 'logo',
+                    xtype : 'Link',
+                    xns : Roo.bootstrap,
+                    html : 'test'
+                },
+               {
+                    bar : true,
+                    position : 'static-top',
+                    xtype : 'NavHeaderbar',
+                    tag : 'nav',
+                    xns : Roo.bootstrap,
+                    items : [
+                       {
+                            cls : 'navbar-btn sidebar-toggle',
+                            xtype : 'Link',
+                            xns : Roo.bootstrap,
+                            html : '<span class=\"icon-bar\"></span><span class=\"icon-bar\"></span><span class=\"icon-bar\"></span>'
+                        },
+                       {
+                            xtype : 'NavGroup',
+                            align : 'right',
+                            xns : Roo.bootstrap,
+                            items : [
+                               {
+                                    menu : {
+                                        xtype : 'Menu',
+                                        xns : Roo.bootstrap,
+                                        items : [
+                                               {
+                                                xtype : 'MenuItem',
+                                                xns : Roo.bootstrap,
+                                                html : 'test'
+                                            }
+                                        ]
+
+                                    },
+                                    xtype : 'NavItem',
+                                    xns : Roo.bootstrap,
+                                    html : 'test',
+                                    items : [
+
+                                    ]
+
+                                },
+                               {
+                                    xtype : 'NavItem',
+                                    xns : Roo.bootstrap,
+                                    html : 'test'
+                                }
+                            ]
+
+                        }
+                    ]
+
+                }
+            ]
+
+        };    }
+});
index acacce4..51fe71e 100644 (file)
                     "String cls" : "header",
                     "xtype" : "Container",
                     "tag" : "header",
-                    "$ xns" : "Roo.bootstrap",
-                    "items" : [
-                        {
-                            "String cls" : "logo",
-                            "xtype" : "Link",
-                            "$ xns" : "Roo.bootstrap",
-                            "String html" : "test"
-                        },
-                        {
-                            "Boolean bar" : true,
-                            "String position" : "static-top",
-                            "xtype" : "NavHeaderbar",
-                            "tag" : "nav",
-                            "$ xns" : "Roo.bootstrap",
-                            "items" : [
-                                {
-                                    "String cls" : "navbar-btn sidebar-toggle",
-                                    "xtype" : "Link",
-                                    "$ xns" : "Roo.bootstrap",
-                                    "String html" : "<span class=\"icon-bar\"></span><span class=\"icon-bar\"></span><span class=\"icon-bar\"></span>"
-                                },
-                                {
-                                    "xtype" : "NavGroup",
-                                    "String align" : "right",
-                                    "$ xns" : "Roo.bootstrap",
-                                    "items" : [
-                                        {
-                                            "xtype" : "NavItem",
-                                            "$ xns" : "Roo.bootstrap",
-                                            "String html" : "test",
-                                            "items" : [
-                                                {
-                                                    "xtype" : "Menu",
-                                                    "$ xns" : "Roo.bootstrap",
-                                                    "* prop" : "menu",
-                                                    "items" : [
-                                                        {
-                                                            "xtype" : "MenuItem",
-                                                            "$ xns" : "Roo.bootstrap",
-                                                            "String html" : "test"
-                                                        }
-                                                    ]
-                                                }
-                                            ]
-                                        },
-                                        {
-                                            "xtype" : "NavItem",
-                                            "$ xns" : "Roo.bootstrap",
-                                            "String html" : "test"
-                                        }
-                                    ]
-                                }
-                            ]
-                        }
-                    ]
+                    "* xinclude" : "Dashboard.Header1",
+                    "$ xns" : "Roo.bootstrap"
                 },
                 {
                     "String cls" : "wrapper row-offcanvas row-offcanvas-left",
index bc5262d..0f11ec0 100644 (file)
@@ -19,71 +19,12 @@ dashboard1 = new Roo.XComponent({
             xtype : 'Body',
             xns : Roo.bootstrap,
             items : [
-               {
+               Roo.apply(Dashboard.Header1._tree(), {
                     cls : 'header',
                     xtype : 'Container',
                     tag : 'header',
-                    xns : Roo.bootstrap,
-                    items : [
-                       {
-                            cls : 'logo',
-                            xtype : 'Link',
-                            xns : Roo.bootstrap,
-                            html : 'test'
-                        },
-                       {
-                            bar : true,
-                            position : 'static-top',
-                            xtype : 'NavHeaderbar',
-                            tag : 'nav',
-                            xns : Roo.bootstrap,
-                            items : [
-                               {
-                                    cls : 'navbar-btn sidebar-toggle',
-                                    xtype : 'Link',
-                                    xns : Roo.bootstrap,
-                                    html : '<span class=\"icon-bar\"></span><span class=\"icon-bar\"></span><span class=\"icon-bar\"></span>'
-                                },
-                               {
-                                    xtype : 'NavGroup',
-                                    align : 'right',
-                                    xns : Roo.bootstrap,
-                                    items : [
-                                       {
-                                            menu : {
-                                                xtype : 'Menu',
-                                                xns : Roo.bootstrap,
-                                                items : [
-                                                       {
-                                                        xtype : 'MenuItem',
-                                                        xns : Roo.bootstrap,
-                                                        html : 'test'
-                                                    }
-                                                ]
-
-                                            },
-                                            xtype : 'NavItem',
-                                            xns : Roo.bootstrap,
-                                            html : 'test',
-                                            items : [
-
-                                            ]
-
-                                        },
-                                       {
-                                            xtype : 'NavItem',
-                                            xns : Roo.bootstrap,
-                                            html : 'test'
-                                        }
-                                    ]
-
-                                }
-                            ]
-
-                        }
-                    ]
-
-                },
+                    xns : Roo.bootstrap
+                }),
                {
                     cls : 'wrapper row-offcanvas row-offcanvas-left',
                     xtype : 'Container',