October 22, 2024
Chicago 12, Melborne City, USA
javascript

Programatically select an option from a Primevue Select element


I have a Primevue Select element in my Nuxt3/Vue3 app.
I want to change the selected option programatically, but I can’t find information on how to do that. There is not ".value" I can set.

This is my element:

              <Select id="Gage" v-model="selectedGageValue" filter :options="getGageOptionsList" optionLabel="name"
            optionValue="description" placeholder=" ... " :virtualScrollerOptions="{ itemSize: 50 }"
            @change="onGageSelectionChange" class=""></Select>



You need to sign in to view this answers

Leave feedback about this

  • Quality
  • Price
  • Service

PROS

+
Add Field

CONS

+
Add Field
Choose Image
Choose Video