mardi 12 janvier 2021

Vue, how to get an empty line if I select an option?

There is a dropdown menu with 3 selections. Whatever you select, it will be shown as text on the right. How do I manage that the "Choice1" is not shown at all? It should be just an empty line if you click on "Choice1" while "Choice2" and "Choice3" are still shown. Right now all three options are shown.

      { id: 2, value: "Choice1" },
      { id: 3, value: "Choice2" },
      { id: 4, value: "Choice3" },
    ],

v-model="Example.addressUserModel"
                    :items="addressitems"
                    return-object
                    item-text="value"
                    item-value="id"
                    dense
                    outlined
                    rounded

 v-if="Example.addressUserModel" style="text-align: left; margin-top: 1%">
                         ```
                      

Aucun commentaire:

Enregistrer un commentaire