Skip to content

Commit

Permalink
Improved options formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
serbanghita committed Dec 18, 2023
1 parent 2ebd50a commit 879c2ee
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,21 +55,13 @@ cases the method will return an object `{}`.

## Options

`includeEmptyValuedElements` (`boolean`, default `false`)
| Option name | Default | Description |
|---------------------------------------------|-----------------------------|--------------------------------------------------------------------------------------------------------------------------------------|
| `includeEmptyValuedElements` | `boolean` (default `false`) | Return field names as keys with empty value `""` instead of just ignoring them. |
| `w3cSuccessfulControlsOnly` | `boolean` (default `false`) | TBA, WIP |
| `selectNameWithEmptyBracketsReturnsArray` | `boolean` (default `true`) | `<select>` field names like `name="select[]"` always return an array `[a,b]` instead or array of arrays `[0: [a,b]]`. |
| `checkBoxNameWithEmptyBracketsReturnsArray` | `boolean` (default `true`) | `<input>` checkboxes with field names like `name=checkbox[]` always return an array `[a,b]` instead or array of arrays `[0: [a,b]]`. |

Return field names as keys with empty value `""` instead of just ignoring them.

`w3cSuccessfulControlsOnly` (`boolean`, default `false`)

TBA

`selectNameWithEmptyBracketsReturnsArray` (`boolean`, default `true`)

`<select>` field names like `name="select[]"` always return an array `[a,b]` instead or array of arrays `[0: [a,b]]`.

`checkBoxNameWithEmptyBracketsReturnsArray` (`boolean`, default `true`)

`<input>` checkboxes with field names like `name=checkbox[]` always return an array `[a,b]` instead or array of arrays `[0: [a,b]]`.

## Browser support

Expand Down

0 comments on commit 879c2ee

Please sign in to comment.