Option to specify `id` property / selected key
See original GitHub issueHello,
There’s :label
prop to specify which option object property should be used as a label, but I can’t find how to specify the actual value property. Right now the v-model
is set to the whole object.
Is there a way to specify to set the result value of object property?
Thanks
Issue Analytics
- State:
- Created 7 years ago
- Reactions:25
- Comments:27 (7 by maintainers)
Top Results From Across the Web
Select option base on property key in value - Stack Overflow
Filtering all options in the select $('select ... based on the `id` in the value return obj.id === 123; }).prop('selected', true); // Set...
Read more >HTML select id Attribute - Dofactory
The id attribute on a select element assigns a unique identifier to that element. ... Select city -- </option> <option value="paris">Paris</option> <option ......
Read more >ID selectors - CSS: Cascading Style Sheets - MDN Web Docs
The CSS ID selector matches an element based on the value of the element's id attribute. In order for the element to be...
Read more >How To Select HTML Elements Using ID, Class, and Attribute ...
Writing CSS selectors most often involves setting a condition and locating the element in the HTML that fulfills that condition as true.
Read more >HTML option selected Attribute - W3Schools
The selected attribute is a boolean attribute. When present, it specifies that an option should be pre-selected when the page loads. The pre-selected...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This feature has been around since 2.5. In
3.0
, this API has been replaced with areduce
function prop #800 #780.This feature is up in the new docs @ https://vue-select.org/guide/values.html#transforming-selections.
So, still no sollution to this?