PageRenderTime 16ms CodeModel.GetById 8ms app.highlight 7ms RepoModel.GetById 0ms app.codeStats 0ms

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