Skip to content

Commit b51c620

Browse files
chore: update docs
1 parent 60b1e0c commit b51c620

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

shiny/ui/_input_select.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,9 @@ def input_selectize(
7474
An input label.
7575
choices
7676
Either a list of choices or a dictionary mapping choice values to labels. Note
77-
that if a dictionary is provided, the keys are used as the (input) values so
78-
that the dictionary values can hold HTML labels. A dictionary of dictionaries is
77+
that if a dictionary is provided, the keys are used as the (input) values and
78+
the values are labels displayed to the user. It is not recommended to use
79+
anything other than a string for these labels. A dictionary of dictionaries is
7980
also supported, and in that case, the top-level keys are treated as
8081
``<optgroup>`` labels.
8182
selected
@@ -155,8 +156,9 @@ def input_select(
155156
An input label.
156157
choices
157158
Either a list of choices or a dictionary mapping choice values to labels. Note
158-
that if a dictionary is provided, the keys are used as the (input) values so
159-
that the dictionary values can hold HTML labels. A dictionary of dictionaries is
159+
that if a dictionary is provided, the keys are used as the (input) values and
160+
the values are labels displayed to the user. It is not recommended to use
161+
anything other than a string for these labels. A dictionary of dictionaries is
160162
also supported, and in that case, the top-level keys are treated as
161163
``<optgroup>`` labels.
162164
selected

0 commit comments

Comments
 (0)