Skip to content

Map v-model into custom properties when using is-multi #249

@pls-kick-me

Description

@pls-kick-me

First of all, thanx for this great tool!
But...
How can I do map to inner v-model property when isMulti?
With option I can do so (:get-option-label/:get-option-value). But I need v-model.
For example, here the data I receive from server:

let items = [
 {
   id: 1,
   code: 'blabla',
   text: 'bla',
 },
...
]

I want something like this:

<vue-select
:is-multi="true" v-model="items" :get-model-value="item => item.id"
>

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions