Skip to content

Commit 05ef817

Browse files
committed
docs(api): add model option formData
1 parent a299a5b commit 05ef817

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

docs/content/en/api/model-options.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,24 @@ parameterNames() {
6565
}
6666
```
6767

68+
### `formData`
69+
- Returns: `object`
70+
71+
This method can be overridden in the model to configure `object-to-formdata`.
72+
73+
See [object-to-formdata](https://github.com/therealparmesh/object-to-formdata#usage)
74+
75+
```js
76+
formData() {
77+
return {
78+
indices: false,
79+
nullsAsUndefineds: false,
80+
booleansAsIntegers: false,
81+
allowEmptyArrays: false,
82+
}
83+
}
84+
```
85+
6886
#### `include`
6987
- Default: `include`
7088
- Returns: `string`

0 commit comments

Comments
 (0)