Upgrade to ExtJS 4.0.0 - Released 04/26/2011
[extjs.git] / examples / form / fieldcontainer.html
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
7     <!-- ExtJS -->
8     <link rel="stylesheet" type="text/css" href="../../resources/css/ext-all.css" />
9     <script type="text/javascript" src="../../bootstrap.js"></script>
10
11     <!-- Shared -->
12     <link rel="stylesheet" type="text/css" href="../shared/example.css" />
13
14     <!-- Example -->
15     <script type="text/javascript" src="fieldcontainer.js"></script>
16 </head>
17 <body id="docbody">
18
19   <h1>FieldContainer Example</h1>
20
21   <p>Several form fields can be placed onto the same row with a FieldContainer.</p>
22   
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>
27   
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>
30
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>
34
35   <p>The js is not minified so it is readable. See <a href="fieldcontainer.js">fieldcontainer.js</a>.</p>
36 </body>
37 </html>