A
A
Artem Prokhorov2021-07-20 17:27:57
Vue.js
Artem Prokhorov, 2021-07-20 17:27:57

How to get specific object key via vue-multiselect?

{name: some, age: 18}
Here's how I get only the age when choosing a name in the select?

<template>
  <div>
    <multiselect
      v-model="selected"
      :options="options"
      :label="name">
    </multiselect>
  </div>
</template>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
coderisimo, 2021-07-20
@kotcich

Here is a simple example for you

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question