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