1
1
< container padding ="10 " layout ="fit " [fitToParent] ="true ">
2
- < container [shadow] ="true " [top] ="top " [left] ="left " [width] ="width " [height] ="height "
3
- [layout] ="vbox " [padding] ="10 "
4
- >
5
- < panel [ui] ="'instructions' " [margin] ="'0 0 20 0' " [shadow] ="true "
6
- [html] ="'<b>ContainerField</b> allows you to apply a single label to multiple fields.
2
+
3
+ < formpanel [shadow] ="true " [top] ="top " [left] ="left " [width] ="width " [height] ="height "
4
+ [layout] ="{type: 'vbox', align: 'left'} " [bodyPadding] ="10 "
5
+ [defaults] ="{labelAlign: 'left', labelTextAlign: 'right'} ">
6
+
7
+ < container >
8
+ < span #extitem >
9
+ < b > ContainerField</ b > allows you to apply a single label to multiple fields.
7
10
This is especially useful for groups of checkboxes, radio buttons, and other compound
8
- fields.' "
9
- > </ panel >
10
- < container padding ="10 " layout ="fit " [fitToParent] ="true "> < formpanel [layout] ="'form' " [shadow] ="true " [defaults] ="{labelAlign: 'left', labelTextAlign: 'right'} ">
11
- < containerfield [label] ="'Name' " [layout] ="isPhone ? 'vbox' : 'hbox' " [defaults] ="{labelAlign: 'bottom'} ">
12
- < textfield [label] ="'First' "> </ textfield >
13
- < textfield [label] ="'Middle' "> </ textfield >
14
- < textfield [label] ="'Last' "> </ textfield >
15
- </ containerfield >
16
- < containerfield [label] ="'Vehicle Class' " [layout] ="{type: 'vbox', align: 'left'} " [defaults] ="{ margin: '0' } ">
17
- < radiofield [boxLabel] ="'Compact' " [name] ="'priority' "> </ radiofield >
18
- < radiofield [boxLabel] ="'Mid-size' " [name] ="'priority' "> </ radiofield >
19
- < radiofield [boxLabel] ="'SUV' " [name] ="'priority' "> </ radiofield >
20
- </ containerfield >
21
- < containerfield [label] ="'Options' " [layout] ="{type: 'vbox', align: 'left'} ">
22
- < checkboxfield [boxLabel] ="'A/C' "> </ checkboxfield >
23
- < checkboxfield [boxLabel] ="'Leather' "> </ checkboxfield >
24
- < checkboxfield [boxLabel] ="'Nav' "> </ checkboxfield >
25
- </ containerfield >
26
- </ formpanel >
27
- </ container >
11
+ fields.
12
+ </ span >
13
+ </ container >
14
+
15
+ < containerfield [label] ="'Name' " [layout] ="isPhone ? 'vbox' : 'vbox' " [defaults] ="{labelAlign: 'bottom'} ">
16
+ < textfield [label] ="'First' "> </ textfield >
17
+ < textfield [label] ="'Middle' "> </ textfield >
18
+ < textfield [label] ="'Last' "> </ textfield >
19
+ </ containerfield >
20
+
21
+ < containerfield [label] ="'Vehicle Class' " [layout] ="{type: 'vbox', align: 'left'} " [defaults] ="{ margin: '0' } ">
22
+ < radiofield [boxLabel] ="'Compact' " [name] ="'priority' "> </ radiofield >
23
+ < radiofield [boxLabel] ="'Mid-size' " [name] ="'priority' "> </ radiofield >
24
+ < radiofield [boxLabel] ="'SUV' " [name] ="'priority' "> </ radiofield >
25
+ </ containerfield >
26
+
27
+ < containerfield [label] ="'Options' " [layout] ="{type: 'vbox', align: 'left'} ">
28
+ < checkboxfield [boxLabel] ="'A/C' "> </ checkboxfield >
29
+ < checkboxfield [boxLabel] ="'Leather' "> </ checkboxfield >
30
+ < checkboxfield [boxLabel] ="'Nav' "> </ checkboxfield >
31
+ </ containerfield >
32
+
33
+ </ formpanel >
34
+
28
35
</ container >
0 commit comments