Skip to content

Commit

Permalink
docs: update select widget default value docs (decaporg#2723)
Browse files Browse the repository at this point in the history
  • Loading branch information
saenglert authored and vladdu committed Jan 26, 2021
1 parent 54049a6 commit 9c64747
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion website/content/docs/widgets/select.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ The select widget allows you to pick a string value from a dropdown menu.
- **UI:** select input
- **Data type:** string or array
- **Options:**
- `default`: accepts a string; defaults to an empty string. Accepts an array of strings and defaults to an empty array with `multiple: true` enabled.
- `default`: default values must be contained in `options` and are ignored otherwise
- string values: accepts a string; defaults to an empty string. Accepts an array of strings and defaults to an empty array with `multiple: true` enabled.
- object with `label` and `value` fields: accepts an object with `label` and `value` field or an array of such objects when `multiple: true` is enable. Defaults to no value
- `options`: (**required**) a list of options for the dropdown menu; can be listed in two ways:
- string values: the label displayed in the dropdown is the value saved in the file
- object with `label` and `value` fields: the label displays in the dropdown; the value is saved in the file
Expand Down

0 comments on commit 9c64747

Please sign in to comment.