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