Upgrade to ExtJS 3.2.0 - Released 03/30/2010
[extjs.git] / examples / form / vbox-form.html
1 <html>
2 <head>
3     <title>Vbox</title>
4     <link rel="stylesheet" type="text/css" href="../../resources/css/ext-all.css"/>
5
6     <!-- GC -->
7     <!-- LIBS -->
8     <script type="text/javascript" src="../../adapter/ext/ext-base.js"></script>
9     <!-- ENDLIBS -->
10
11     <script type="text/javascript" src="../../ext-all.js"></script>
12     <script type="text/javascript" src="../ux/FieldLabeler.js"></script>
13     <script type="text/javascript" src="../ux/FieldReplicator.js"></script>
14
15     <script type="text/javascript" src="vbox-form.js"></script>
16     <link rel="stylesheet" type="text/css" href="forms.css"/>
17
18     <!-- Common Styles for the examples -->
19     <link rel="stylesheet" type="text/css" href="../shared/examples.css"/>
20 </head>
21 <body>
22 <script type="text/javascript" src="../shared/examples.js"></script>
23 <!-- EXAMPLES -->
24 <h1>vbox Layout with Forms</h1>
25 <p>The <code><b>align:'stretch'</b></code> config of the vbox layout manager ensures
26 all child items are 100% of the container width.</p>
27 <p>The <code><b>flex</b></code> config of child items of a vbox layout specifies what share of the vertical
28 space left when unflexed items are accounted for to allocate for that child item.</p>
29 <p>Compare this to <a href="anchoring.html">The anchoring example</a>. That anchors the fields
30 to a hardcoded offset from the edge of the Container. The box layout managers allow much more
31 flexibility in use of available space.</p>
32 <p>The js is not minified so it is readable. See <a href="vbox-form.js">vbox-form.js</a>.</p>
33 <p>This also illustrates the use of plugins to alter the default behaviour of Components. The <b>Send To</b>
34 field clones itself until the final one is left blank to allow multiple mail recipients. The layout
35 manager keeps the vertical space allocated correctly.</p>
36 </body>
37 </html>