[Vuejs]-Multiple Vuetify Comboboxes with extensible Items

0👍

You can create rules As an array of objects that contains the model1 model2 for each rule and bind them to the combobox v-model like so:

data: () => ({
        // all your other data
        rules: [
           { Id: 1, model1: null, model2: null },
           { Id: 1, model1: null, model2: null },
        ]
    }),

In your template:


<v-combobox
     v-model="rule.model1"
     // all the rest

/>

Leave a comment