Skip to content

Commit b4d7670

Browse files
author
bietkul
committed
Merge branch 'develop' of https://github.com/bietkul/react-reactive-form into develop
2 parents 13c0ff8 + ae81533 commit b4d7670

File tree

3 files changed

+19
-10
lines changed

3 files changed

+19
-10
lines changed

docs/api/AbstractControl.md

+19
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ get parent: FormGroup | FormArray
3535
The parent control.
3636
##
3737
```ts
38+
submitted: boolean
39+
```
40+
A control is `submitted` if the `handleSubmit` function has been called on it.
41+
##
42+
```ts
3843
get status: string
3944
```
4045
The validation status of the control. There are four possible validation statuses:
@@ -151,6 +156,20 @@ clearAsyncValidators(): void
151156
Empties out the async validator list.
152157
##
153158
```ts
159+
markAsSubmitted: (opts?: {emitEvent?: boolean}) => void;
160+
```
161+
Marks the control as `submitted`.
162+
163+
If the control has any children, it will also mark all children as `submitted`.
164+
##
165+
```ts
166+
markAsUnsubmitted: (opts?: {emitEvent?: boolean}) => void;
167+
```
168+
Marks the control as `unsubmitted`.
169+
170+
If the control has any children, it will also mark all children as `unsubmitted`.
171+
##
172+
```ts
154173
markAsTouched(opts: {
155174
onlySelf?: boolean;
156175
} = {}): void

docs/api/FormArray.md

-5
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,6 @@ controls: AbstractControl[]
5959
```
6060
##
6161
```ts
62-
submitted: boolean
63-
```
64-
A form is submitted if the `handleSubmit` function has been called on it.
65-
##
66-
```ts
6762
at(index: number): AbstractControl
6863
```
6964
Get the [AbstractControl](AbstractControl.md) at the given index in the array.

docs/api/FormGroup.md

-5
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,6 @@ controls: {
6767
```
6868
##
6969
```ts
70-
submitted: boolean
71-
```
72-
A form is submitted if the `handleSubmit` function has been called on it.
73-
##
74-
```ts
7570
registerControl(name: string, control: AbstractControl): AbstractControl
7671
```
7772
Registers a control with the group's list of controls.

0 commit comments

Comments
 (0)