examples/bootstrap/RadioSet.bjs
authoredward <edward@roojs.com>
Fri, 17 Nov 2017 08:59:06 +0000 (16:59 +0800)
committeredward <edward@roojs.com>
Fri, 17 Nov 2017 08:59:06 +0000 (16:59 +0800)
examples/bootstrap/RadioSet.js

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

index 5ec7f66..7686db3 100644 (file)
            ]
           }
          ]
+        },
+        {
+         "xtype" : "Row",
+         "$ xns" : "Roo.bootstrap",
+         "items" : [
+          {
+           "xtype" : "Column",
+           "Number xs" : 12,
+           "$ xns" : "Roo.bootstrap",
+           "items" : [
+            {
+             "bool allowBlank" : false,
+             "xtype" : "RadioSet",
+             "string fieldLabel" : "Radio Field Lable",
+             "$ xns" : "Roo.bootstrap",
+             "string indicatorpos" : "right",
+             "string name" : "radio_name",
+             "items" : [
+              {
+               "xtype" : "Radio",
+               "$ xns" : "Roo.bootstrap",
+               "string boxLabel" : "Yes",
+               "string value" : "yes"
+              },
+              {
+               "xtype" : "Radio",
+               "$ xns" : "Roo.bootstrap",
+               "string boxLabel" : "No",
+               "string value" : "no"
+              }
+             ]
+            }
+           ]
+          }
+         ]
         }
        ]
       }
index 86cc03e..1c09c38 100644 (file)
@@ -128,6 +128,46 @@ RadioSet = new Roo.XComponent({
            ]
           }
          ]
+        },
+        {
+         xtype : 'Row',
+         xns : Roo.bootstrap,
+         '|xns' : 'Roo.bootstrap',
+         items  : [
+          {
+           xtype : 'Column',
+           xs : 12,
+           xns : Roo.bootstrap,
+           '|xns' : 'Roo.bootstrap',
+           items  : [
+            {
+             xtype : 'RadioSet',
+             allowBlank : false,
+             fieldLabel : _this._strings['8d80ce38760953b68529d7fc9d8d89b6'] /* Radio Field Lable */,
+             indicatorpos : 'right',
+             name : 'radio_name',
+             xns : Roo.bootstrap,
+             '|xns' : 'Roo.bootstrap',
+             items  : [
+              {
+               xtype : 'Radio',
+               boxLabel : 'Yes',
+               value : _this._strings['a6105c0a611b41b08f1209506350279e'] /* yes */,
+               xns : Roo.bootstrap,
+               '|xns' : 'Roo.bootstrap'
+              },
+              {
+               xtype : 'Radio',
+               boxLabel : 'No',
+               value : _this._strings['7fa3b767c460b54a2be4d49030b349c7'] /* no */,
+               xns : Roo.bootstrap,
+               '|xns' : 'Roo.bootstrap'
+              }
+             ]
+            }
+           ]
+          }
+         ]
         }
        ]
       }