angular-cn/public/docs/js/latest/api/forms/ControlGroup-class.jade
2015-09-01 13:55:47 -07:00

123 lines
1.8 KiB
Plaintext

p.location-badge.
exported from <a href='../forms'>angular2/forms</a>
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.36/modules/angular2/src/forms/model.ts#L165-L249">angular2/src/forms/model.ts (line 165)</a>
:markdown
This module is used for handling user input, by defining and building a <a href='ControlGroup-class.html'><code>ControlGroup</code></a> that
consists of
<a href='Control-class.html'><code>Control</code></a> objects, and mapping them onto the DOM. <a href='Control-class.html'><code>Control</code></a> objects can then be used
to read information
from the form DOM elements.
This module is not included in the `angular2` module; you must import the forms module
explicitly.
.l-main-section
h2 Members
.l-sub-section
h3 constructor
pre.prettyprint
code.
constructor(controls: StringMap&lt;string, AbstractControl&gt;, optionals?: StringMap&lt;string, boolean&gt;, validator?: Function)
:markdown
.l-sub-section
h3 controls
:markdown
.l-sub-section
h3 addControl
pre.prettyprint
code.
addControl(name: string, c: AbstractControl)
:markdown
.l-sub-section
h3 removeControl
pre.prettyprint
code.
removeControl(name: string)
:markdown
.l-sub-section
h3 include
pre.prettyprint
code.
include(controlName: string)
:markdown
.l-sub-section
h3 exclude
pre.prettyprint
code.
exclude(controlName: string)
:markdown
.l-sub-section
h3 contains
pre.prettyprint
code.
contains(controlName: string)
:markdown