X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=examples%2Fbootstrap%2FRadioSet.bjs;h=a5da442558612a714b9bd27c22152b06c758e069;hb=b502c7cce8b0f54e92dfb90fa53515c8ea78d0ee;hp=2269ab4417ba325ac2da37fbf2ebe694c43e16ee;hpb=46d30dca3233dd8d12f81208ed1c0fd69833656c;p=roojs1 diff --git a/examples/bootstrap/RadioSet.bjs b/examples/bootstrap/RadioSet.bjs index 2269ab4417..a5da442558 100644 --- a/examples/bootstrap/RadioSet.bjs +++ b/examples/bootstrap/RadioSet.bjs @@ -2,15 +2,30 @@ "name" : "RadioSet", "parent" : "", "title" : "", - "path" : "/home/edward/gitlive/roojs1/examples/bootstrap/RadioSet.bjs", + "path" : "/home/alan/gitlive/roojs1/examples/bootstrap/RadioSet.bjs", "permname" : "", "modOrder" : "001", "strings" : { + "ce8ae9da5b7cd6c3df2929543a9af92d" : "Email", + "bafd7322c6e97d25b6299b5d6fe8920b" : "No", "7fa3b767c460b54a2be4d49030b349c7" : "no", "e3917ff2d3b3a88eab391651215d6445" : "Radio Field Lable Left", + "9dffbf69ffba8bc38bc4e01abf4b1675" : "Text", "8d80ce38760953b68529d7fc9d8d89b6" : "Radio Field Lable", + "015ae6f41d4b86ad13ac0fde840d2280" : "Text Input", + "93cba07454f06a4a960172bbd6e2a435" : "Yes", "a6105c0a611b41b08f1209506350279e" : "yes", - "b7dc22f0e17f4dfca2940eb0bd0cdc54" : "Radio Set Example" + "ad3d06d03d94223fa652babc913de686" : "Validate", + "b7dc22f0e17f4dfca2940eb0bd0cdc54" : "Radio Set Example", + "b09c9236a266cc99b2e790564b81cc70" : "This is a checkbox" + }, + "named_strings" : { + "text_name_fieldLabel" : "015ae6f41d4b86ad13ac0fde840d2280", + "left_radio_fieldLabel" : "e3917ff2d3b3a88eab391651215d6445", + "text_name_placeholder" : "9dffbf69ffba8bc38bc4e01abf4b1675", + "email_name_placeholder" : "ce8ae9da5b7cd6c3df2929543a9af92d", + "top_radio_fieldLabel" : "8d80ce38760953b68529d7fc9d8d89b6", + "test1_boxLabel" : "b09c9236a266cc99b2e790564b81cc70" }, "items" : [ { @@ -27,6 +42,7 @@ "listeners" : { "render" : "function (_self)\n{\n _this.form = this;\n}" }, + "Boolean errorMask" : true, "xtype" : "Form", "$ xns" : "Roo.bootstrap", "items" : [ @@ -41,8 +57,8 @@ "items" : [ { "xtype" : "Header", - "$ xns" : "Roo.bootstrap", "Number level" : 1, + "$ xns" : "Roo.bootstrap", "String html" : "Radio Set Example" } ] @@ -133,8 +149,71 @@ "String style" : "margin-top: 15px;", "items" : [ { + "Boolean allowBlank" : false, "String name" : "text_name", "xtype" : "Input", + "string placeholder" : "Text", + "string fieldLabel" : "Text Input", + "$ xns" : "Roo.bootstrap" + } + ] + } + ] + }, + { + "xtype" : "Row", + "$ xns" : "Roo.bootstrap", + "items" : [ + { + "xtype" : "Column", + "Number xs" : 12, + "$ xns" : "Roo.bootstrap", + "items" : [ + { + "Boolean allowBlank" : false, + "String name" : "email_name", + "xtype" : "Input", + "string placeholder" : "Email", + "$ xns" : "Roo.bootstrap", + "String vtype" : "email", + "String regexText" : "This field should be an e-mail address in the format \"user@domain.com\"" + } + ] + } + ] + }, + { + "xtype" : "Row", + "$ xns" : "Roo.bootstrap", + "items" : [ + { + "xtype" : "Column", + "Number xs" : 12, + "$ xns" : "Roo.bootstrap", + "items" : [ + { + "Boolean allowBlank" : false, + "String name" : "text_area", + "xtype" : "TextArea", + "$ xns" : "Roo.bootstrap" + } + ] + } + ] + }, + { + "xtype" : "Row", + "$ xns" : "Roo.bootstrap", + "items" : [ + { + "xtype" : "Column", + "Number xs" : 12, + "$ xns" : "Roo.bootstrap", + "items" : [ + { + "String name" : "test1", + "xtype" : "CheckBox", + "String boxLabel" : "This is a checkbox", "$ xns" : "Roo.bootstrap" } ] @@ -152,9 +231,13 @@ "String style" : "margin-top: 15px;", "items" : [ { + "listeners" : { + "click" : "function (_self, e)\n{\n _this.form.isValid();\n}" + }, "String weight" : "primary", "xtype" : "Button", - "$ xns" : "Roo.bootstrap" + "$ xns" : "Roo.bootstrap", + "String html" : "Validate" } ] }