SelectOption valueText
prop
#847
Unanswered
jiblett1000
asked this question in
Q&A
Replies: 1 comment
-
which version of |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Just hoping for some clarification on the distinction between the
SelectOption
props (i.e. label, value, valueText). I'm guessing it's as follows:label: The text displayed on the trigger / button element when an option is selected and for each said item in the list.
value: The actual value of the option which is normally not displayed.
valueText: An optional text which is displayed in the options list for each item (instead of
label
), butlabel
can still be used for display in the trigger element. This allows the two values to be different.Is that understanding correct?
Beta Was this translation helpful? Give feedback.
All reactions