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   "cb77406bbf3dfa74988524ac61a5a9be" : "Text Name",
15   "a6105c0a611b41b08f1209506350279e" : "yes",
16   "ad3d06d03d94223fa652babc913de686" : "Validate",
17   "b7dc22f0e17f4dfca2940eb0bd0cdc54" : "Radio Set Example"
18  },
19  "items" : [
20   {
21    "String cls" : "bg-black",
22    "xtype" : "Body",
23    "$ xns" : "Roo.bootstrap",
24    "String style" : "min-height: 100%;",
25    "items" : [
26     {
27      "xtype" : "Container",
28      "$ xns" : "Roo.bootstrap",
29      "items" : [
30       {
31        "listeners" : {
32         "render" : "function (_self)\n{\n    _this.form = this;\n}"
33        },
34        "Boolean errPopover" : true,
35        "xtype" : "Form",
36        "$ xns" : "Roo.bootstrap",
37        "items" : [
38         {
39          "xtype" : "Row",
40          "$ xns" : "Roo.bootstrap",
41          "items" : [
42           {
43            "xtype" : "Column",
44            "Number xs" : 12,
45            "$ xns" : "Roo.bootstrap",
46            "items" : [
47             {
48              "xtype" : "Header",
49              "Number level" : 1,
50              "$ xns" : "Roo.bootstrap",
51              "String html" : "Radio Set Example"
52             }
53            ]
54           }
55          ]
56         },
57         {
58          "xtype" : "Row",
59          "$ xns" : "Roo.bootstrap",
60          "items" : [
61           {
62            "xtype" : "Column",
63            "Number xs" : 12,
64            "$ xns" : "Roo.bootstrap",
65            "items" : [
66             {
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              "Number labelWidth" : 6,
110              "string name" : "left_radio",
111              "string labelAlign" : "left",
112              "items" : [
113               {
114                "xtype" : "Radio",
115                "$ xns" : "Roo.bootstrap",
116                "string boxLabel" : "Yes",
117                "string value" : "yes"
118               },
119               {
120                "xtype" : "Radio",
121                "$ xns" : "Roo.bootstrap",
122                "string boxLabel" : "No",
123                "string value" : "no"
124               }
125              ]
126             }
127            ]
128           }
129          ]
130         },
131         {
132          "xtype" : "Row",
133          "$ xns" : "Roo.bootstrap",
134          "items" : [
135           {
136            "xtype" : "Column",
137            "Number xs" : 12,
138            "$ xns" : "Roo.bootstrap",
139            "String style" : "margin-top: 15px;",
140            "items" : [
141             {
142              "Boolean allowBlank" : false,
143              "String name" : "text_name",
144              "xtype" : "Input",
145              "Number labelxs" : 6,
146              "string placeholder" : "Text",
147              "string fieldLabel" : "Text Name",
148              "$ xns" : "Roo.bootstrap"
149             }
150            ]
151           }
152          ]
153         },
154         {
155          "xtype" : "Row",
156          "$ xns" : "Roo.bootstrap",
157          "items" : [
158           {
159            "xtype" : "Column",
160            "Number xs" : 12,
161            "$ xns" : "Roo.bootstrap",
162            "items" : [
163             {
164              "Boolean allowBlank" : false,
165              "String name" : "email_name",
166              "xtype" : "Input",
167              "string placeholder" : "Email",
168              "$ xns" : "Roo.bootstrap",
169              "String vtype" : "email",
170              "String regexText" : "This field should be an e-mail address in the format \"user@domain.com\""
171             }
172            ]
173           }
174          ]
175         },
176         {
177          "xtype" : "Row",
178          "$ xns" : "Roo.bootstrap",
179          "items" : [
180           {
181            "xtype" : "Column",
182            "Number xs" : 12,
183            "$ xns" : "Roo.bootstrap",
184            "String style" : "margin-top: 15px;",
185            "items" : [
186             {
187              "listeners" : {
188               "click" : "function (_self, e)\n{\n    _this.form.isValid();\n}"
189              },
190              "String weight" : "primary",
191              "xtype" : "Button",
192              "$ xns" : "Roo.bootstrap",
193              "String html" : "Validate"
194             }
195            ]
196           }
197          ]
198         }
199        ]
200       }
201      ]
202     }
203    ]
204   }
205  ]
206 }