File tree 3 files changed +19
-10
lines changed
3 files changed +19
-10
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,11 @@ get parent: FormGroup | FormArray
35
35
The parent control.
36
36
##
37
37
``` ts
38
+ submitted : boolean
39
+ ```
40
+ A control is ` submitted ` if the ` handleSubmit ` function has been called on it.
41
+ ##
42
+ ``` ts
38
43
get status : string
39
44
```
40
45
The validation status of the control. There are four possible validation statuses:
@@ -151,6 +156,20 @@ clearAsyncValidators(): void
151
156
Empties out the async validator list.
152
157
##
153
158
``` 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
154
173
markAsTouched (opts : {
155
174
onlySelf?: boolean ;
156
175
} = {}): void
Original file line number Diff line number Diff line change @@ -59,11 +59,6 @@ controls: AbstractControl[]
59
59
```
60
60
##
61
61
``` ts
62
- submitted : boolean
63
- ```
64
- A form is submitted if the ` handleSubmit ` function has been called on it.
65
- ##
66
- ``` ts
67
62
at (index : number ): AbstractControl
68
63
```
69
64
Get the [ AbstractControl] ( AbstractControl.md ) at the given index in the array.
Original file line number Diff line number Diff line change @@ -67,11 +67,6 @@ controls: {
67
67
```
68
68
##
69
69
``` ts
70
- submitted : boolean
71
- ```
72
- A form is submitted if the ` handleSubmit ` function has been called on it.
73
- ##
74
- ``` ts
75
70
registerControl (name : string , control : AbstractControl ): AbstractControl
76
71
```
77
72
Registers a control with the group's list of controls.
You can’t perform that action at this time.
0 commit comments