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

Commit 4872f58

Browse files
committed
Add missing models to docs
1 parent aa66206 commit 4872f58

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

docs/guide/models.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,37 @@ export function FormControl({
6767
this.dirty = dirty;
6868
}
6969
```
70+
71+
## `FormValidation`
72+
73+
Contains validation control for the requested input field. See also [validations](validation.md).
74+
75+
```javascript
76+
export function FormValidation(
77+
validator = null,
78+
text = 'There is something wrong with this field',
79+
) {
80+
this.validator = validator;
81+
this.text = text;
82+
}
83+
```
84+
85+
## `FormOptions`
86+
87+
Contains the form options. Dahh.
88+
89+
```javascript
90+
export function FormOptions({
91+
customClass = '',
92+
method = 'POST',
93+
autoValidate = false,
94+
netlify = false,
95+
netlifyHoneypot = null,
96+
}) {
97+
this.customClass = customClass;
98+
this.method = method;
99+
this.autoValidate = autoValidate;
100+
this.netlify = netlify;
101+
this.netlifyHoneypot = netlifyHoneypot;
102+
}
103+
```

0 commit comments

Comments
 (0)