File: composite-field.html

package info (click to toggle)
libjs-extjs 3.4.0%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch
  • size: 53,188 kB
  • ctags: 3,384
  • sloc: php: 819; xml: 537; python: 60; sql: 44; makefile: 35
file content (35 lines) | stat: -rw-r--r-- 1,906 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <title>Composite Fields</title>
    <link rel="stylesheet" type="text/css" href="../../resources/css/ext-all.css"/>

    <!-- GC -->
    <!-- LIBS -->
    <script type="text/javascript" src="../../adapter/ext/ext-base.js"></script>
    <!-- ENDLIBS -->

    <script type="text/javascript" src="../../ext-all-debug.js"></script>
    <script type="text/javascript" src="composite-field.js"></script>

    <link rel="stylesheet" type="text/css" href="forms.css"/>

    <!-- Common Styles for the examples -->
    <link rel="stylesheet" type="text/css" href="../shared/examples.css"/>
</head>
<body id="docbody">
  <script type="text/javascript" src="../shared/examples.js"></script>
  <!-- EXAMPLES -->
  <h1>Composite Form Fields</h1>

  <p>Several form fields can be placed onto the same row with a composite field.</p>
  
  <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>
  
  <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>
  <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>

  <p>The js is not minified so it is readable. See <a href="composite-field.js">composite-field.js</a>.</p>
</body>
</html>