Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
 into develop
  • Loading branch information
bietkul committed Dec 29, 2017
2 parents 13c0ff8 + ae81533 commit b4d7670
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 10 deletions.
19 changes: 19 additions & 0 deletions docs/api/AbstractControl.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ get parent: FormGroup | FormArray
The parent control.
##
```ts
submitted: boolean
```
A control is `submitted` if the `handleSubmit` function has been called on it.
##
```ts
get status: string
```
The validation status of the control. There are four possible validation statuses:
Expand Down Expand Up @@ -151,6 +156,20 @@ clearAsyncValidators(): void
Empties out the async validator list.
##
```ts
markAsSubmitted: (opts?: {emitEvent?: boolean}) => void;
```
Marks the control as `submitted`.

If the control has any children, it will also mark all children as `submitted`.
##
```ts
markAsUnsubmitted: (opts?: {emitEvent?: boolean}) => void;
```
Marks the control as `unsubmitted`.

If the control has any children, it will also mark all children as `unsubmitted`.
##
```ts
markAsTouched(opts: {
onlySelf?: boolean;
} = {}): void
Expand Down
5 changes: 0 additions & 5 deletions docs/api/FormArray.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,6 @@ controls: AbstractControl[]
```
##
```ts
submitted: boolean
```
A form is submitted if the `handleSubmit` function has been called on it.
##
```ts
at(index: number): AbstractControl
```
Get the [AbstractControl](AbstractControl.md) at the given index in the array.
Expand Down
5 changes: 0 additions & 5 deletions docs/api/FormGroup.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,6 @@ controls: {
```
##
```ts
submitted: boolean
```
A form is submitted if the `handleSubmit` function has been called on it.
##
```ts
registerControl(name: string, control: AbstractControl): AbstractControl
```
Registers a control with the group's list of controls.
Expand Down

0 comments on commit b4d7670

Please sign in to comment.