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