Skip to content
This repository was archived by the owner on Jun 27, 2023. It is now read-only.

Commit 9b332c7

Browse files
committed
Update docs
1 parent f3fce6e commit 9b332c7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/guide/models.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ This is the principal instance containing the info of your field, as seen in sev
66

77
```javascript
88
export function FormField({
9+
id,
910
type = 'text',
1011
value = null,
1112
validations = [],
@@ -17,6 +18,7 @@ export function FormField({
1718
placeholder = null,
1819
inline = false,
1920
}) {
21+
this.id = id;
2022
this.type = type;
2123
this.value = value;
2224
this.validations = validations;
@@ -36,6 +38,7 @@ Tracks the value and validation status of an individual form control. `FormContr
3638

3739
```javascript
3840
export function FormControl({
41+
id,
3942
type = null,
4043
value = null,
4144
validations = [],
@@ -49,6 +52,7 @@ export function FormControl({
4952
touched = false,
5053
dirty = false,
5154
}) {
55+
this.id = id || `${form}-${name}`;
5256
this.type = type;
5357
this.value = value;
5458
this.validations = validations;

0 commit comments

Comments
 (0)