How to make a combobox a reusable component in vue? #1328
Replies: 3 comments 11 replies
-
Hello, you can use |
Beta Was this translation helpful? Give feedback.
-
https://vuejs.org/guide/components/events.html#usage-with-v-model |
Beta Was this translation helpful? Give feedback.
-
I know this is long overdue here but I am trying to write a custom component myself using Vue and finding this extremely difficult. I have gotten to the point where I can set the selected option as needed when clicked in the list and pass back the value to the parent component however now I am faced with another issue. I cannot for the life of me figure out how to set the default selected option. I have been at this for nearly 4 hours now and could use some guidance / help if anyone is available and has the time. Here's the current code: https://pb.farmflight.us/?6fbabf05594f72f9#C1EobuqQHPmx5WFJVN4sXw9Y2QauCZxjatvfvrKXgfuC - If you would like a video of what I am referring to, please let me know. Thank you! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! I was trying to create a combobox as a reusable component but I can't figure out how I should do it. As the combobox itself doesnt have an @change function, how should I be able to make it as a reusable component. How to make a combobox update the state of a parent element? Thak you.
Beta Was this translation helpful? Give feedback.
All reactions