question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Option to specify `id` property / selected key

See original GitHub issue

Hello,

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:closed
  • Created 7 years ago
  • Reactions:25
  • Comments:27 (7 by maintainers)

github_iconTop GitHub Comments

8reactions
sagalbotcommented, Apr 13, 2019

This feature has been around since 2.5. In 3.0, this API has been replaced with a reduce function prop #800 #780.

This feature is up in the new docs @ https://vue-select.org/guide/values.html#transforming-selections.

8reactions
zealotrahlcommented, Jul 30, 2018

So, still no sollution to this?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found