You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1.8 KiB

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