Upgrade to ExtJS 4.0.0 - Released 04/26/2011
[extjs.git] / examples / form / vbox-form.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2 <html>
3 <head>
4     <title>Form With VBox Layout</title>
5
6     <!-- ExtJS -->
7     <link rel="stylesheet" type="text/css" href="../../resources/css/ext-all.css" />
8     <script type="text/javascript" src="../../bootstrap.js"></script>
9
10     <!-- Shared -->
11     <link rel="stylesheet" type="text/css" href="../shared/example.css" />
12     <script type="text/javascript" src="../shared/states.js"></script>
13
14     <!-- Example -->
15     <script type="text/javascript" src="vbox-form.js"></script>
16 </head>
17 <body>
18
19     <h1>VBox Layout with Forms</h1>
20     <p>The <code><b>align:'stretch'</b></code> config of the vbox layout manager ensures
21     all child items are 100% of the container width.</p>
22     <p>The <code><b>flex</b></code> config of child items of a vbox layout specifies what share of the vertical
23     space left when unflexed items are accounted for to allocate for that child item.</p>
24     <p>Compare this to <a href="anchoring.html">The anchoring example</a>. That anchors the fields
25     to a hardcoded offset from the edge of the Container. The box layout managers allow much more
26     flexibility in use of available space.</p>
27     <p>The js is not minified so it is readable. See <a href="vbox-form.js">vbox-form.js</a>.</p>
28     <p>This also illustrates the use of plugins to alter the default behaviour of Components. The <b>Send To</b>
29     field clones itself until the final one is left blank to allow multiple mail recipients. The layout
30     manager keeps the vertical space allocated correctly.</p>
31
32 </body>
33 </html>