examples/bootstrap/RadioSet.bjs
authoredward <edward@roojs.com>
Tue, 21 Nov 2017 04:42:17 +0000 (12:42 +0800)
committeredward <edward@roojs.com>
Tue, 21 Nov 2017 04:42:17 +0000 (12:42 +0800)
examples/bootstrap/RadioSet.js

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

index d9543ab..d4967df 100644 (file)
            "$ xns" : "Roo.bootstrap",
            "items" : [
             {
-             "String name" : "text_name",
+             "Boolean allowBlank" : false,
+             "String name" : "email_name",
              "xtype" : "Input",
              "string placeholder" : "Email",
              "$ xns" : "Roo.bootstrap",
-             "String vtype" : "email"
+             "String vtype" : "email",
+             "String regexText" : "This field should be an e-mail address in the format \"user@domain.com\""
             }
            ]
           }
index 97ccd4c..2f400f6 100644 (file)
@@ -192,8 +192,10 @@ RadioSet = new Roo.XComponent({
            items  : [
             {
              xtype : 'Input',
-             name : 'text_name',
+             allowBlank : false,
+             name : 'email_name',
              placeholder : _this._strings['ce8ae9da5b7cd6c3df2929543a9af92d'] /* Email */,
+             regexText : 'This field should be an e-mail address in the format \"user@domain.com\"',
              vtype : 'email',
              xns : Roo.bootstrap,
              '|xns' : 'Roo.bootstrap'