Skip to content
This repository was archived by the owner on Aug 29, 2021. It is now read-only.

Commit ffe47bd

Browse files
saenglertNathan Kitchen
authored and
Nathan Kitchen
committed
docs: update select widget default value docs (decaporg#2723)
1 parent c3885a9 commit ffe47bd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

website/content/docs/widgets/select.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ The select widget allows you to pick a string value from a dropdown menu.
99
- **UI:** select input
1010
- **Data type:** string or array
1111
- **Options:**
12-
- `default`: accepts a string; defaults to an empty string. Accepts an array of strings and defaults to an empty array with `multiple: true` enabled.
12+
- `default`: default values must be contained in `options` and are ignored otherwise
13+
- 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.
14+
- 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
1315
- `options`: (**required**) a list of options for the dropdown menu; can be listed in two ways:
1416
- string values: the label displayed in the dropdown is the value saved in the file
1517
- object with `label` and `value` fields: the label displays in the dropdown; the value is saved in the file

0 commit comments

Comments
 (0)