You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 29, 2021. It is now read-only.
Copy file name to clipboardexpand all lines: website/content/docs/widgets/select.md
+3-1
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,9 @@ The select widget allows you to pick a string value from a dropdown menu.
9
9
-**UI:** select input
10
10
-**Data type:** string or array
11
11
-**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
13
15
-`options`: (**required**) a list of options for the dropdown menu; can be listed in two ways:
14
16
- string values: the label displayed in the dropdown is the value saved in the file
15
17
- object with `label` and `value` fields: the label displays in the dropdown; the value is saved in the file
0 commit comments