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

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarosabu committed Jun 3, 2020
1 parent f3fce6e commit 9b332c7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/guide/models.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ This is the principal instance containing the info of your field, as seen in sev

```javascript
export function FormField({
id,
type = 'text',
value = null,
validations = [],
Expand All @@ -17,6 +18,7 @@ export function FormField({
placeholder = null,
inline = false,
}) {
this.id = id;
this.type = type;
this.value = value;
this.validations = validations;
Expand All @@ -36,6 +38,7 @@ Tracks the value and validation status of an individual form control. `FormContr

```javascript
export function FormControl({
id,
type = null,
value = null,
validations = [],
Expand All @@ -49,6 +52,7 @@ export function FormControl({
touched = false,
dirty = false,
}) {
this.id = id || `${form}-${name}`;
this.type = type;
this.value = value;
this.validations = validations;
Expand Down

0 comments on commit 9b332c7

Please sign in to comment.