/ext-4.1.0_b3/examples/form/fieldcontainer.html

https://bitbucket.org/srogerf/javascript · HTML · 40 lines · 25 code · 11 blank · 4 comment · 0 complexity · 38d8b81859abbc1d2341870496945e23 MD5 · raw file

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  5. <title>FieldContainer Example</title>
  6. <!-- ExtJS -->
  7. <link rel="stylesheet" type="text/css" href="../../resources/css/ext-all.css" />
  8. <script type="text/javascript" src="../../ext-all.js"></script>
  9. <!-- Shared -->
  10. <link rel="stylesheet" type="text/css" href="../shared/example.css" />
  11. <!-- GC -->
  12. <!-- Example -->
  13. <script type="text/javascript" src="fieldcontainer.js"></script>
  14. </head>
  15. <body id="docbody">
  16. <h1>FieldContainer Example</h1>
  17. <p>Several form fields can be placed onto the same row with a FieldContainer.</p>
  18. <p>The FieldContainer's child items are arranged like in any other container, using the
  19. <code>layout</code> configuration property. In this example, each FieldContainer
  20. is set to use an HBox layout - <a href="http://www.sencha.com/deploy/dev/docs/?class=Ext.layout.HBoxLayout">see
  21. the HBox docs for details</a> or the <a href="../layout/hbox.html">HBox layout example</a>.</p>
  22. <p>FieldContainers can be configured with the combineErrors option, which combines errors from
  23. the sub fields and presents them at the container level.</p>
  24. <p>In this example the Date Range, Phone and Full Name items have this option enabled, and
  25. the Time worked item does not. The <a href="http://www.sencha.com/deploy/dev/docs/?class=Ext.form.Labelable&member=msgTarget">msgTarget</a>
  26. config option is fully supported, so errors can be rendered to any of the supported locations.</p>
  27. <p>The js is not minified so it is readable. See <a href="fieldcontainer.js">fieldcontainer.js</a>.</p>
  28. </body>
  29. </html>