examples/bootstrap/dashboard3.bjs
authorAlan Knowles <alan@roojs.com>
Wed, 4 Feb 2015 07:34:18 +0000 (15:34 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 4 Feb 2015 07:34:18 +0000 (15:34 +0800)
examples/bootstrap/dashboard3.js

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

index 9f6ec93..623842b 100644 (file)
                                                     "$ xns" : "Roo.bootstrap",
                                                     "height" : 500,
                                                     "items" : [
+                                                        {
+                                                            "String cls" : "carousel-control left",
+                                                            "Boolean preventDefault" : true,
+                                                            "xtype" : "Link",
+                                                            "$ xns" : "Roo.bootstrap",
+                                                            "String html" : "<span class=\"glyphicon glyphicon-chevron-left\"></span>"
+                                                        },
+                                                        {
+                                                            "listeners" : {
+                                                                "click" : "function (e)\n{\n  _this.tab_first.setActive(false);\n_this.tab_second.setActive(true);\n}"
+                                                            },
+                                                            "String cls" : "carousel-control right",
+                                                            "Boolean preventDefault" : true,
+                                                            "xtype" : "Link",
+                                                            "$ xns" : "Roo.bootstrap",
+                                                            "String html" : "<span class=\"glyphicon glyphicon-chevron-right\"></span>"
+                                                        },
                                                         {
                                                             "listeners" : {
                                                                 "render" : "function (_self)\n{\n_this.tab_first = _self;\n}"
                                                                             ]
                                                                         }
                                                                     ]
-                                                                },
-                                                                {
-                                                                    "String cls" : "carousel-control left",
-                                                                    "Boolean preventDefault" : true,
-                                                                    "xtype" : "Link",
-                                                                    "$ xns" : "Roo.bootstrap",
-                                                                    "String html" : "<span class=\"glyphicon glyphicon-chevron-left\"></span>"
-                                                                },
-                                                                {
-                                                                    "listeners" : {
-                                                                        "click" : "function (e)\n{\n  _this.tab_first.setActive(false);\n_this.tab_second.setActive(true);\n}"
-                                                                    },
-                                                                    "String cls" : "carousel-control right",
-                                                                    "Boolean preventDefault" : true,
-                                                                    "xtype" : "Link",
-                                                                    "$ xns" : "Roo.bootstrap",
-                                                                    "String html" : "<span class=\"glyphicon glyphicon-chevron-right\"></span>"
                                                                 }
                                                             ]
                                                         },
                                                                             ]
                                                                         }
                                                                     ]
-                                                                },
-                                                                {
-                                                                    "String cls" : "carousel-control left",
-                                                                    "xtype" : "Link",
-                                                                    "$ xns" : "Roo.bootstrap",
-                                                                    "String html" : "<span class=\"glyphicon glyphicon-chevron-left\"></span>"
-                                                                },
-                                                                {
-                                                                    "String cls" : "carousel-control right",
-                                                                    "xtype" : "Link",
-                                                                    "$ xns" : "Roo.bootstrap",
-                                                                    "String html" : "<span class=\"glyphicon glyphicon-chevron-right\"></span>"
                                                                 }
                                                             ]
                                                         }
index aac3838..8c6297a 100644 (file)
@@ -365,6 +365,29 @@ dashboard3 = new Roo.XComponent({
                                                     xns : Roo.bootstrap,
                                                     height : 500,
                                                     items : [
+                                                       {
+                                                            '|xns' : 'Roo.bootstrap',
+                                                            cls : 'carousel-control left',
+                                                            preventDefault : true,
+                                                            xtype : 'Link',
+                                                            xns : Roo.bootstrap,
+                                                            html : '<span class=\"glyphicon glyphicon-chevron-left\"></span>'
+                                                        },
+                                                       {
+                                                            '|xns' : 'Roo.bootstrap',
+                                                            cls : 'carousel-control right',
+                                                            preventDefault : true,
+                                                            xtype : 'Link',
+                                                            xns : Roo.bootstrap,
+                                                            html : '<span class=\"glyphicon glyphicon-chevron-right\"></span>',
+                                                            listeners : {
+                                                               click : function (e)
+                                                                  {
+                                                                    _this.tab_first.setActive(false);
+                                                                  _this.tab_second.setActive(true);
+                                                                  }
+                                                            }
+                                                        },
                                                        {
                                                             '|xns' : 'Roo.bootstrap',
                                                             active : true,
@@ -423,29 +446,6 @@ dashboard3 = new Roo.XComponent({
                                                                         }
                                                                     ]
 
-                                                                },
-                                                               {
-                                                                    '|xns' : 'Roo.bootstrap',
-                                                                    cls : 'carousel-control left',
-                                                                    preventDefault : true,
-                                                                    xtype : 'Link',
-                                                                    xns : Roo.bootstrap,
-                                                                    html : '<span class=\"glyphicon glyphicon-chevron-left\"></span>'
-                                                                },
-                                                               {
-                                                                    '|xns' : 'Roo.bootstrap',
-                                                                    cls : 'carousel-control right',
-                                                                    preventDefault : true,
-                                                                    xtype : 'Link',
-                                                                    xns : Roo.bootstrap,
-                                                                    html : '<span class=\"glyphicon glyphicon-chevron-right\"></span>',
-                                                                    listeners : {
-                                                                       click : function (e)
-                                                                          {
-                                                                            _this.tab_first.setActive(false);
-                                                                          _this.tab_second.setActive(true);
-                                                                          }
-                                                                    }
                                                                 }
                                                             ]
 
@@ -508,20 +508,6 @@ dashboard3 = new Roo.XComponent({
                                                                         }
                                                                     ]
 
-                                                                },
-                                                               {
-                                                                    '|xns' : 'Roo.bootstrap',
-                                                                    cls : 'carousel-control left',
-                                                                    xtype : 'Link',
-                                                                    xns : Roo.bootstrap,
-                                                                    html : '<span class=\"glyphicon glyphicon-chevron-left\"></span>'
-                                                                },
-                                                               {
-                                                                    '|xns' : 'Roo.bootstrap',
-                                                                    cls : 'carousel-control right',
-                                                                    xtype : 'Link',
-                                                                    xns : Roo.bootstrap,
-                                                                    html : '<span class=\"glyphicon glyphicon-chevron-right\"></span>'
                                                                 }
                                                             ]