[feature request] add tag attribute to v-select component and on-change callback
See original GitHub issuewhile trying to use v-select
in a for in
loop, there is no way i can distinguish which $index emited the on-change callback.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:14 (4 by maintainers)
Top Results From Across the Web
vue.js - How do I watch for onChange of specific select menu ...
The operator menu is dynamically populated based on API based on the selected attribute. I have v-model="form.values.attributes" , and my watch ...
Read more >Select component — Vuetify
The v-select components can be optionally expanded with prepended and appended items. This is perfect for customized select-all functionality.
Read more >Vue-Multiselect | Vue Select Library
In this example, the addTag method generates an object with a unique code property. Optional configuration flags: tag-placeholder="Add this as new tag" –...
Read more >How to Use @change in Vue with select Tags - Mastering JS
In every option tag, you must set the value property to define the value of each option. Vue event handlers have a special...
Read more >simple-vue-select - npm Package Health Analysis - Snyk
Vue.js component that provides functionality to selects without the overhead of ... in which case you'll need to use * the onChange callback...
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
Here is a way around this one; for our model:
the markup is:
This supplies an anonymous function with the signature required by
onChange
, which passes the new valueval
and the id from the model to a separatetagsChanged
functionDon’t forget to define a global
tagsChanged
function or one inside the Vue app it it has to access the model.Both very good suggestions. I’ll work on this for an upcoming release.
Did you have an API in mind for distinguishing v-selects?