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>FieldContainer Example</title>
8 <link rel="stylesheet" type="text/css" href="../../resources/css/ext-all.css" />
9 <script type="text/javascript" src="../../bootstrap.js"></script>
12 <link rel="stylesheet" type="text/css" href="../shared/example.css" />
15 <script type="text/javascript" src="fieldcontainer.js"></script>
19 <h1>FieldContainer Example</h1>
21 <p>Several form fields can be placed onto the same row with a FieldContainer.</p>
23 <p>The FieldContainer's child items are arranged like in any other container, using the
24 <code>layout</code> configuration property. In this example, each FieldContainer
25 is set to use an HBox layout - <a href="http://www.sencha.com/deploy/dev/docs/?class=Ext.layout.HBoxLayout">see
26 the HBox docs for details</a> or the <a href="../layout/hbox.html">HBox layout example</a>.</p>
28 <p>FieldContainers can be configured with the combineErrors option, which combines errors from
29 the sub fields and presents them at the container level.</p>
31 <p>In this example the Date Range, Phone and Full Name items have this option enabled, and
32 the Time worked item does not. The <a href="http://www.sencha.com/deploy/dev/docs/?class=Ext.form.Labelable&member=msgTarget">msgTarget</a>
33 config option is fully supported, so errors can be rendered to any of the supported locations.</p>
35 <p>The js is not minified so it is readable. See <a href="fieldcontainer.js">fieldcontainer.js</a>.</p>