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