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

Commit c7d7b79

Browse files
authored
Merge pull request #36 from alvarosaburido/bug/add_missing_models_to_docs
Add missing models to docs
2 parents eb87432 + 4872f58 commit c7d7b79

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

docs/guide/models.md

+34
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,37 @@ export function FormControl({
8181
this.helper = helper;
8282
}
8383
```
84+
85+
## `FormValidation`
86+
87+
Contains validation control for the requested input field. See also [validations](validation.md).
88+
89+
```javascript
90+
export function FormValidation(
91+
validator = null,
92+
text = 'There is something wrong with this field',
93+
) {
94+
this.validator = validator;
95+
this.text = text;
96+
}
97+
```
98+
99+
## `FormOptions`
100+
101+
Contains the form options. Dahh.
102+
103+
```javascript
104+
export function FormOptions({
105+
customClass = '',
106+
method = 'POST',
107+
autoValidate = false,
108+
netlify = false,
109+
netlifyHoneypot = null,
110+
}) {
111+
this.customClass = customClass;
112+
this.method = method;
113+
this.autoValidate = autoValidate;
114+
this.netlify = netlify;
115+
this.netlifyHoneypot = netlifyHoneypot;
116+
}
117+
```

0 commit comments

Comments
 (0)