examples/bootstrap/RadioSet.bjs
[roojs1] / examples / bootstrap / RadioSet.js
1 //<script type="text/javascript">
2
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
4
5 RadioSet = new Roo.XComponent({
6
7  _strings : {
8   '7fa3b767c460b54a2be4d49030b349c7' :"no",
9   'e3917ff2d3b3a88eab391651215d6445' :"Radio Field Lable Left",
10   '8d80ce38760953b68529d7fc9d8d89b6' :"Radio Field Lable",
11   'a6105c0a611b41b08f1209506350279e' :"yes",
12   '93e6896c0a7715e3d1e96d2bb333923a' :"Normal Text",
13   'ad3d06d03d94223fa652babc913de686' :"Validate",
14   'b7dc22f0e17f4dfca2940eb0bd0cdc54' :"Radio Set Example"
15  },
16
17   part     :  ["bootstrap", "RadioSet" ],
18   order    : '001-RadioSet',
19   region   : 'center',
20   parent   : false,
21   name     : "unnamed module",
22   disabled : false, 
23   permname : '', 
24   _tree : function(_data)
25   {
26    var _this = this;
27    var MODULE = this;
28    return {
29    xtype : 'Body',
30    cls : 'bg-black',
31    style : 'min-height: 100%;',
32    xns : Roo.bootstrap,
33    '|xns' : 'Roo.bootstrap',
34    items  : [
35     {
36      xtype : 'Container',
37      xns : Roo.bootstrap,
38      '|xns' : 'Roo.bootstrap',
39      items  : [
40       {
41        xtype : 'Form',
42        errPopover : true,
43        listeners : {
44         render : function (_self)
45          {
46              _this.form = this;
47          }
48        },
49        xns : Roo.bootstrap,
50        '|xns' : 'Roo.bootstrap',
51        items  : [
52         {
53          xtype : 'Row',
54          xns : Roo.bootstrap,
55          '|xns' : 'Roo.bootstrap',
56          items  : [
57           {
58            xtype : 'Column',
59            xs : 12,
60            xns : Roo.bootstrap,
61            '|xns' : 'Roo.bootstrap',
62            items  : [
63             {
64              xtype : 'Header',
65              html : _this._strings['b7dc22f0e17f4dfca2940eb0bd0cdc54'] /* Radio Set Example */,
66              level : 1,
67              xns : Roo.bootstrap,
68              '|xns' : 'Roo.bootstrap'
69             }
70            ]
71           }
72          ]
73         },
74         {
75          xtype : 'Row',
76          xns : Roo.bootstrap,
77          '|xns' : 'Roo.bootstrap',
78          items  : [
79           {
80            xtype : 'Column',
81            xs : 12,
82            xns : Roo.bootstrap,
83            '|xns' : 'Roo.bootstrap',
84            items  : [
85             {
86              xtype : 'RadioSet',
87              allowBlank : false,
88              fieldLabel : _this._strings['8d80ce38760953b68529d7fc9d8d89b6'] /* Radio Field Lable */,
89              indicatorpos : 'right',
90              labelAlign : 'top',
91              name : 'top_radio',
92              xns : Roo.bootstrap,
93              '|xns' : 'Roo.bootstrap',
94              items  : [
95               {
96                xtype : 'Radio',
97                boxLabel : 'Yes',
98                value : _this._strings['a6105c0a611b41b08f1209506350279e'] /* yes */,
99                xns : Roo.bootstrap,
100                '|xns' : 'Roo.bootstrap'
101               },
102               {
103                xtype : 'Radio',
104                boxLabel : 'No',
105                value : _this._strings['7fa3b767c460b54a2be4d49030b349c7'] /* no */,
106                xns : Roo.bootstrap,
107                '|xns' : 'Roo.bootstrap'
108               }
109              ]
110             }
111            ]
112           }
113          ]
114         },
115         {
116          xtype : 'Row',
117          xns : Roo.bootstrap,
118          '|xns' : 'Roo.bootstrap',
119          items  : [
120           {
121            xtype : 'Column',
122            style : 'margin-top: 15px;',
123            xs : 12,
124            xns : Roo.bootstrap,
125            '|xns' : 'Roo.bootstrap',
126            items  : [
127             {
128              xtype : 'RadioSet',
129              allowBlank : false,
130              fieldLabel : _this._strings['e3917ff2d3b3a88eab391651215d6445'] /* Radio Field Lable Left */,
131              indicatorpos : 'right',
132              labelAlign : 'left',
133              name : 'left_radio',
134              xns : Roo.bootstrap,
135              '|xns' : 'Roo.bootstrap',
136              items  : [
137               {
138                xtype : 'Radio',
139                boxLabel : 'Yes',
140                value : _this._strings['a6105c0a611b41b08f1209506350279e'] /* yes */,
141                xns : Roo.bootstrap,
142                '|xns' : 'Roo.bootstrap'
143               },
144               {
145                xtype : 'Radio',
146                boxLabel : 'No',
147                value : _this._strings['7fa3b767c460b54a2be4d49030b349c7'] /* no */,
148                xns : Roo.bootstrap,
149                '|xns' : 'Roo.bootstrap'
150               }
151              ]
152             }
153            ]
154           }
155          ]
156         },
157         {
158          xtype : 'Row',
159          xns : Roo.bootstrap,
160          '|xns' : 'Roo.bootstrap',
161          items  : [
162           {
163            xtype : 'Column',
164            style : 'margin-top: 15px;',
165            xs : 12,
166            xns : Roo.bootstrap,
167            '|xns' : 'Roo.bootstrap',
168            items  : [
169             {
170              xtype : 'Input',
171              name : 'text_name',
172              placeholder : _this._strings['93e6896c0a7715e3d1e96d2bb333923a'] /* Normal Text */,
173              xns : Roo.bootstrap,
174              '|xns' : 'Roo.bootstrap'
175             }
176            ]
177           }
178          ]
179         },
180         {
181          xtype : 'Row',
182          xns : Roo.bootstrap,
183          '|xns' : 'Roo.bootstrap',
184          items  : [
185           {
186            xtype : 'Column',
187            style : 'margin-top: 15px;',
188            xs : 12,
189            xns : Roo.bootstrap,
190            '|xns' : 'Roo.bootstrap',
191            items  : [
192             {
193              xtype : 'Input',
194              name : 'text_name',
195              placeholder : _this._strings['93e6896c0a7715e3d1e96d2bb333923a'] /* Normal Text */,
196              xns : Roo.bootstrap,
197              '|xns' : 'Roo.bootstrap'
198             }
199            ]
200           }
201          ]
202         },
203         {
204          xtype : 'Row',
205          xns : Roo.bootstrap,
206          '|xns' : 'Roo.bootstrap',
207          items  : [
208           {
209            xtype : 'Column',
210            style : 'margin-top: 15px;',
211            xs : 12,
212            xns : Roo.bootstrap,
213            '|xns' : 'Roo.bootstrap',
214            items  : [
215             {
216              xtype : 'Button',
217              html : _this._strings['ad3d06d03d94223fa652babc913de686'] /* Validate */,
218              weight : 'primary',
219              listeners : {
220               click : function (_self, e)
221                {
222                    _this.form.isValid();
223                }
224              },
225              xns : Roo.bootstrap,
226              '|xns' : 'Roo.bootstrap'
227             }
228            ]
229           }
230          ]
231         }
232        ]
233       }
234      ]
235     }
236    ]
237   };  }
238 });