examples/bootstrap/RadioSet.bjs
authoredward <edward@roojs.com>
Tue, 21 Nov 2017 02:47:29 +0000 (10:47 +0800)
committeredward <edward@roojs.com>
Tue, 21 Nov 2017 02:47:29 +0000 (10:47 +0800)
examples/bootstrap/RadioSet.js

examples/bootstrap/RadioSet.bjs
examples/bootstrap/RadioSet.js

index 7df5c05..b38ad7b 100644 (file)
@@ -41,8 +41,8 @@
            "items" : [
             {
              "xtype" : "Header",
-             "Number level" : 1,
              "$ xns" : "Roo.bootstrap",
+             "Number level" : 1,
              "String html" : "Radio Set Example"
             }
            ]
           }
          ]
         },
-        {
-         "xtype" : "Row",
-         "$ xns" : "Roo.bootstrap",
-         "items" : [
-          {
-           "xtype" : "Column",
-           "Number xs" : 12,
-           "$ xns" : "Roo.bootstrap",
-           "String style" : "margin-top: 15px;",
-           "items" : [
-            {
-             "String name" : "text_name",
-             "xtype" : "Input",
-             "$ xns" : "Roo.bootstrap"
-            }
-           ]
-          }
-         ]
-        },
         {
          "xtype" : "Row",
          "$ xns" : "Roo.bootstrap",
              "$ xns" : "Roo.bootstrap",
              "string indicatorpos" : "right",
              "string name" : "left_radio",
+             "string labelAlign" : "left",
              "items" : [
               {
                "xtype" : "Radio",
            ]
           }
          ]
+        },
+        {
+         "xtype" : "Row",
+         "$ xns" : "Roo.bootstrap",
+         "items" : [
+          {
+           "xtype" : "Column",
+           "Number xs" : 12,
+           "$ xns" : "Roo.bootstrap",
+           "String style" : "margin-top: 15px;",
+           "items" : [
+            {
+             "String name" : "text_name",
+             "xtype" : "Input",
+             "$ xns" : "Roo.bootstrap"
+            }
+           ]
+          }
+         ]
         }
        ]
       }
index 9613638..aad70df 100644 (file)
@@ -109,28 +109,6 @@ RadioSet = new Roo.XComponent({
           }
          ]
         },
-        {
-         xtype : 'Row',
-         xns : Roo.bootstrap,
-         '|xns' : 'Roo.bootstrap',
-         items  : [
-          {
-           xtype : 'Column',
-           style : 'margin-top: 15px;',
-           xs : 12,
-           xns : Roo.bootstrap,
-           '|xns' : 'Roo.bootstrap',
-           items  : [
-            {
-             xtype : 'Input',
-             name : 'text_name',
-             xns : Roo.bootstrap,
-             '|xns' : 'Roo.bootstrap'
-            }
-           ]
-          }
-         ]
-        },
         {
          xtype : 'Row',
          xns : Roo.bootstrap,
@@ -147,6 +125,7 @@ RadioSet = new Roo.XComponent({
              allowBlank : false,
              fieldLabel : _this._strings['e3917ff2d3b3a88eab391651215d6445'] /* Radio Field Lable Left */,
              indicatorpos : 'right',
+             labelAlign : 'left',
              name : 'left_radio',
              xns : Roo.bootstrap,
              '|xns' : 'Roo.bootstrap',
@@ -170,6 +149,28 @@ RadioSet = new Roo.XComponent({
            ]
           }
          ]
+        },
+        {
+         xtype : 'Row',
+         xns : Roo.bootstrap,
+         '|xns' : 'Roo.bootstrap',
+         items  : [
+          {
+           xtype : 'Column',
+           style : 'margin-top: 15px;',
+           xs : 12,
+           xns : Roo.bootstrap,
+           '|xns' : 'Roo.bootstrap',
+           items  : [
+            {
+             xtype : 'Input',
+             name : 'text_name',
+             xns : Roo.bootstrap,
+             '|xns' : 'Roo.bootstrap'
+            }
+           ]
+          }
+         ]
         }
        ]
       }