1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
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"/>
10 <script type="text/javascript" src="../../adapter/ext/ext-base.js"></script>
13 <script type="text/javascript" src="../../ext-all-debug.js"></script>
14 <script type="text/javascript" src="composite-field.js"></script>
16 <link rel="stylesheet" type="text/css" href="forms.css"/>
18 <!-- Common Styles for the examples -->
19 <link rel="stylesheet" type="text/css" href="../shared/examples.css"/>
22 <script type="text/javascript" src="../shared/examples.js"></script>
24 <h1>Composite Form Fields</h1>
26 <p>Several form fields can be placed onto the same row with a composite field.</p>
28 <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>
30 <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>
31 <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>
33 <p>The js is not minified so it is readable. See <a href="composite-field.js">composite-field.js</a>.</p>