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