a5b5172d20c6a26c91fb36197bf197c05f16fe0d
[roojs1] / examples / bootstrap / RadioSet.bjs
1 {
2  "name" : "RadioSet",
3  "parent" : "",
4  "title" : "",
5  "path" : "/home/alan/gitlive/roojs1/examples/bootstrap/RadioSet.bjs",
6  "permname" : "",
7  "modOrder" : "001",
8  "strings" : {
9   "ce8ae9da5b7cd6c3df2929543a9af92d" : "Email",
10   "bafd7322c6e97d25b6299b5d6fe8920b" : "No",
11   "7fa3b767c460b54a2be4d49030b349c7" : "no",
12   "e3917ff2d3b3a88eab391651215d6445" : "Radio Field Lable Left",
13   "9dffbf69ffba8bc38bc4e01abf4b1675" : "Text",
14   "8d80ce38760953b68529d7fc9d8d89b6" : "Radio Field Lable",
15   "015ae6f41d4b86ad13ac0fde840d2280" : "Text Input",
16   "93cba07454f06a4a960172bbd6e2a435" : "Yes",
17   "a6105c0a611b41b08f1209506350279e" : "yes",
18   "ad3d06d03d94223fa652babc913de686" : "Validate",
19   "b7dc22f0e17f4dfca2940eb0bd0cdc54" : "Radio Set Example"
20  },
21  "named_strings" : {
22   "text_name_fieldLabel" : "015ae6f41d4b86ad13ac0fde840d2280",
23   "left_radio_fieldLabel" : "e3917ff2d3b3a88eab391651215d6445",
24   "text_name_placeholder" : "9dffbf69ffba8bc38bc4e01abf4b1675",
25   "email_name_placeholder" : "ce8ae9da5b7cd6c3df2929543a9af92d",
26   "top_radio_fieldLabel" : "8d80ce38760953b68529d7fc9d8d89b6"
27  },
28  "items" : [
29   {
30    "String cls" : "bg-black",
31    "xtype" : "Body",
32    "$ xns" : "Roo.bootstrap",
33    "String style" : "min-height: 100%;",
34    "items" : [
35     {
36      "xtype" : "Container",
37      "$ xns" : "Roo.bootstrap",
38      "items" : [
39       {
40        "listeners" : {
41         "render" : "function (_self)\n{\n    _this.form = this;\n}"
42        },
43        "Boolean errorMask" : true,
44        "xtype" : "Form",
45        "$ xns" : "Roo.bootstrap",
46        "items" : [
47         {
48          "xtype" : "Row",
49          "$ xns" : "Roo.bootstrap",
50          "items" : [
51           {
52            "xtype" : "Column",
53            "Number xs" : 12,
54            "$ xns" : "Roo.bootstrap",
55            "items" : [
56             {
57              "xtype" : "Header",
58              "Number level" : 1,
59              "$ xns" : "Roo.bootstrap",
60              "String html" : "Radio Set Example"
61             }
62            ]
63           }
64          ]
65         },
66         {
67          "xtype" : "Row",
68          "$ xns" : "Roo.bootstrap",
69          "items" : [
70           {
71            "xtype" : "Column",
72            "Number xs" : 12,
73            "$ xns" : "Roo.bootstrap",
74            "items" : [
75             {
76              "bool allowBlank" : false,
77              "xtype" : "RadioSet",
78              "string fieldLabel" : "Radio Field Lable",
79              "$ xns" : "Roo.bootstrap",
80              "string indicatorpos" : "right",
81              "string name" : "top_radio",
82              "string labelAlign" : "top",
83              "items" : [
84               {
85                "xtype" : "Radio",
86                "$ xns" : "Roo.bootstrap",
87                "string boxLabel" : "Yes",
88                "string value" : "yes"
89               },
90               {
91                "xtype" : "Radio",
92                "$ xns" : "Roo.bootstrap",
93                "string boxLabel" : "No",
94                "string value" : "no"
95               }
96              ]
97             }
98            ]
99           }
100          ]
101         },
102         {
103          "xtype" : "Row",
104          "$ xns" : "Roo.bootstrap",
105          "items" : [
106           {
107            "xtype" : "Column",
108            "Number xs" : 12,
109            "$ xns" : "Roo.bootstrap",
110            "String style" : "margin-top: 15px;",
111            "items" : [
112             {
113              "bool allowBlank" : false,
114              "xtype" : "RadioSet",
115              "string fieldLabel" : "Radio Field Lable Left",
116              "$ xns" : "Roo.bootstrap",
117              "string indicatorpos" : "right",
118              "string name" : "left_radio",
119              "string labelAlign" : "left",
120              "items" : [
121               {
122                "xtype" : "Radio",
123                "$ xns" : "Roo.bootstrap",
124                "string boxLabel" : "Yes",
125                "string value" : "yes"
126               },
127               {
128                "xtype" : "Radio",
129                "$ xns" : "Roo.bootstrap",
130                "string boxLabel" : "No",
131                "string value" : "no"
132               }
133              ]
134             }
135            ]
136           }
137          ]
138         },
139         {
140          "xtype" : "Row",
141          "$ xns" : "Roo.bootstrap",
142          "items" : [
143           {
144            "xtype" : "Column",
145            "Number xs" : 12,
146            "$ xns" : "Roo.bootstrap",
147            "String style" : "margin-top: 15px;",
148            "items" : [
149             {
150              "Boolean allowBlank" : false,
151              "String name" : "text_name",
152              "xtype" : "Input",
153              "string placeholder" : "Text",
154              "string fieldLabel" : "Text Input",
155              "$ xns" : "Roo.bootstrap"
156             }
157            ]
158           }
159          ]
160         },
161         {
162          "xtype" : "Row",
163          "$ xns" : "Roo.bootstrap",
164          "items" : [
165           {
166            "xtype" : "Column",
167            "Number xs" : 12,
168            "$ xns" : "Roo.bootstrap",
169            "items" : [
170             {
171              "Boolean allowBlank" : false,
172              "String name" : "email_name",
173              "xtype" : "Input",
174              "string placeholder" : "Email",
175              "$ xns" : "Roo.bootstrap",
176              "String vtype" : "email",
177              "String regexText" : "This field should be an e-mail address in the format \"user@domain.com\""
178             }
179            ]
180           }
181          ]
182         },
183         {
184          "xtype" : "Row",
185          "$ xns" : "Roo.bootstrap",
186          "items" : [
187           {
188            "xtype" : "Column",
189            "Number xs" : 12,
190            "$ xns" : "Roo.bootstrap",
191            "items" : [
192             {
193              "Boolean allowBlank" : false,
194              "String name" : "text_area",
195              "xtype" : "TextArea",
196              "$ xns" : "Roo.bootstrap"
197             }
198            ]
199           }
200          ]
201         },
202         {
203          "xtype" : "Row",
204          "$ xns" : "Roo.bootstrap",
205          "items" : [
206           {
207            "xtype" : "Column",
208            "Number xs" : 12,
209            "$ xns" : "Roo.bootstrap",
210            "items" : [
211             {
212              "String name" : "test1",
213              "xtype" : "CheckBox",
214              "$ xns" : "Roo.bootstrap"
215             }
216            ]
217           }
218          ]
219         },
220         {
221          "xtype" : "Row",
222          "$ xns" : "Roo.bootstrap",
223          "items" : [
224           {
225            "xtype" : "Column",
226            "Number xs" : 12,
227            "$ xns" : "Roo.bootstrap",
228            "String style" : "margin-top: 15px;",
229            "items" : [
230             {
231              "listeners" : {
232               "click" : "function (_self, e)\n{\n    _this.form.isValid();\n}"
233              },
234              "String weight" : "primary",
235              "xtype" : "Button",
236              "$ xns" : "Roo.bootstrap",
237              "String html" : "Validate"
238             }
239            ]
240           }
241          ]
242         }
243        ]
244       }
245      ]
246     }
247    ]
248   }
249  ]
250 }