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