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