Skip to content

Commit b810c7c

Browse files
authored
Update FormControl.md
1 parent 79cee94 commit b810c7c

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

docs/api/FormControl.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,16 @@ console.log(this.control.status); // 'DISABLED'
106106
```
107107
##
108108
```ts
109+
active: boolean;
110+
```
111+
`true` means control is in `focused` state.
112+
##
113+
```ts
114+
inactive: boolean;
115+
```
116+
`true` means control is in `unfocused` state.
117+
##
118+
```ts
109119
onChange: (value: any) => void;
110120
```
111121
Function needs to be called whenever a value change happens.
@@ -116,6 +126,11 @@ onBlur: () => void;
116126
Function needs to be called whenever a blur event triggers.
117127
##
118128
```ts
129+
onFocus: (e: any) => void;
130+
```
131+
Function needs to be called whenever a focus event triggers.
132+
##
133+
```ts
119134
onValueChanges: Observable<any>;
120135
```
121136
Emits an event every time the value of the control changes, in the UI by onChange event.
@@ -196,6 +211,11 @@ onBlur: (e: any) => void;
196211
Function needs to be called whenever a `blur` event triggers.
197212
##
198213
```ts
214+
onFocus: (e: any) => void;
215+
```
216+
Function needs to be called whenever a `focus` event triggers.
217+
##
218+
```ts
199219
disabled: boolean;
200220
```
201221
Tells the input element about the `disabled` status.

0 commit comments

Comments
 (0)