-
I'm pulling the content for the Select data prop from a database. So far I've only passed in an array of plain text strings, but now I want to be able to pass in and then capture an id associated with the item the user selected. Can this be done through the data prop, or is there some other way it has to be done (if it can be)? |
Beta Was this translation helpful? Give feedback.
Answered by
rtivital
Jul 23, 2022
Replies: 1 comment 1 reply
-
You can use |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
devstc
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use
data
prop in the following format:[{ value: 'value-1', label: 'label-1' }, { value: 'value-2', label: 'label-2' }]
,value
in this case will be yourid