Web Interface For Lite Argus Control modules
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.

35 lines
1.9 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  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>Composite Fields</title>
  6. <link rel="stylesheet" type="text/css" href="../../resources/css/ext-all.css"/>
  7. <!-- GC -->
  8. <!-- LIBS -->
  9. <script type="text/javascript" src="../../adapter/ext/ext-base.js"></script>
  10. <!-- ENDLIBS -->
  11. <script type="text/javascript" src="../../ext-all-debug.js"></script>
  12. <script type="text/javascript" src="composite-field.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 id="docbody">
  18. <script type="text/javascript" src="../shared/examples.js"></script>
  19. <!-- EXAMPLES -->
  20. <h1>Composite Form Fields</h1>
  21. <p>Several form fields can be placed onto the same row with a composite field.</p>
  22. <p>Internally, a CompositeField uses an HBox Layout to set the width of each field - <a href="http://www.extjs.com/deploy/dev/docs/?class=Ext.layout.HBoxLayout">see the HBox docs for details</a> or the <a href="../layout/hbox.html">HBox layout example</a>.</p>
  23. <p>Composite Fields can be configured with the combineErrors option, which combines errors from the Composite's sub fields and present them at the composite level.</p>
  24. <p>In this example the Date Range, Phone and Full Name Composites have this option enabled, and the Time worked Composite does not. The <a href="http://www.extjs.com/deploy/dev/docs/?class=Ext.form.Field&member=msgTarget">msgTarget</a> config option is fully supported, so errors can be rendered to any of the supported locations </p>
  25. <p>The js is not minified so it is readable. See <a href="composite-field.js">composite-field.js</a>.</p>
  26. </body>
  27. </html>