File tree Expand file tree Collapse file tree 3 files changed +19
-10
lines changed Expand file tree Collapse file tree 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
3535The 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
3843get status : string
3944```
4045The validation status of the control. There are four possible validation statuses:
@@ -151,6 +156,20 @@ clearAsyncValidators(): void
151156Empties 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
154173markAsTouched (opts : {
155174 onlySelf?: boolean ;
156175} = {}): void
Original file line number Diff line number Diff 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
6762at (index : number ): AbstractControl
6863```
6964Get 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: {
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
7570registerControl (name : string , control : AbstractControl ): AbstractControl
7671```
7772Registers a control with the group's list of controls.
You can’t perform that action at this time.
0 commit comments