AbstractNgForm<T extends AbstractControlGroup> class

Abstract class to easily create forms that are template driven.

This allows an implementing form to easily specify how to create control groups, and controls. Allowing for infrastructure to create form systems that are backed by different types such as protos.

Inheritance
Implementers

Constructors

AbstractNgForm()

Properties

controls → Map<String, AbstractControl>
read-only
disabled ↔ bool
@Input('ngDisabled'), read / write, inherited-getter
form ↔ T
read / write
control → T
read-only, inherited
dirty → bool
read-only, inherited
enabled → bool
read-only, inherited
errors → Map<String, dynamic>
read-only, inherited
formDirective Form
Get the form to which this container belongs.
read-only, inherited
hashCode → int
The hash code for this object. [...]
read-only, inherited
name ↔ String
read / write, inherited
ngBeforeSubmit → Stream<T>
An event that is fired before the main form submission event. [...]
@Output(), read-only, inherited
ngSubmit → Stream<T>
An event fired with the user has triggered a form submission.
@Output(), read-only, inherited
path → List<String>
read-only, inherited
pristine → bool
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited
touched → bool
read-only, inherited
untouched → bool
read-only, inherited
valid → bool
read-only, inherited
value → dynamic
read-only, inherited

Methods

addControl(NgControl dir) → void
Add a control to this form.
override
addControlGroup(NgControlGroup dir) → void
Add a group of controls to this form.
override
createControl(NgControl _) Control
createGroup(NgControlGroup dir) → T
findContainer(List<String> path) → T
@protected
removeControl(NgControl dir) → void
Remove a control from this form.
override
removeControlGroup(NgControlGroup dir) → void
Remove a group of controls from this form.
override
updateModel(NgControl dir, dynamic value) → void
Update the model for a particular control with a new value.
getControl(NgControl dir) Control
Look up the Control associated with a particular NgControl.
inherited
getControlGroup(NgControlGroup dir) AbstractControlGroup
Look up the AbstractControlGroup associated with a particular NgControlGroup.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
onReset(Event event) → void
@HostListener('reset'), inherited
onSubmit(Event event) → void
@HostListener('submit'), inherited
reset({dynamic value }) → void
Resets the form control. [...]
inherited
toggleDisabled(bool isDisabled) → void
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator. [...]
inherited