Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

muazzamazaz's avatar

vue-next-select concatenate two fields

I need to concatenate two fields in label-by property

import VueSelect from 'vue-next-select';
import 'vue-next-select/dist/index.min.css';

const app = createApp({})
app.component('vue-select', VueSelect)

<vue-select  @input="form.driver = $event.target.value" v-model="form.driver" :options="drivers" searchable close-on-select label-by="name" placeholder="Driver"  track-by="name"></vue-select>

how to concatenate like name and designation

0 likes
0 replies

Please or to participate in this conversation.