Combobox

Default example

Pizza
Pasta
Fries
Rice
Beans
<BaseCombobox
options= "[ "Pizza", "Pasta", "Fries", "Rice", "Beans" ]"
v-model= "selectedFoods"
placeholder= "Selecteer gerechten..."
label= "Kies gerechten"
/>

Properties

  • optionsThe options for the combobox component
  • v-modelModel value of the radio buttons
  • placeholderThe placeholder for the combobox component
  • labelThe label for the combobox component

Geavanceerd voorbeeld

👩‍💻
Alice Vance
👨‍💻
Bob Smith
🧑‍🚀
Charlie Ding
👩‍🎤
Diana Prince
🕵️‍♂️
Ethan Hunt
<BaseCombobox
v-model= "userSelection"
:options= "userOptions"
item-key= "id"
search-key= "name"
placeholder= "Selecteer teamleden..."
label= "Kies Teamleden"
>
<template #selected-item = { item, remove }>
<div>
<span> {{ item.avatar }} </span>
<span> {{ item.name }} </span>
</div>
</template>
<template #combobox-item = { item }>
<div>
<span> {{ item.avatar }} </span>
<div>
<span> {{ item.name }} </span>
<span> {{ item.email }} </span>
</div>
</div>
</template>
</BaseCombobox>

Properties

  • v-modelModel value of the combobox
  • optionsThe options for the combobox component
  • item-keyThe key of each item to uniquely identify it
  • search-keyThe key of each item to search on
  • placeholderThe placeholder for the combobox component
  • labelThe label for the combobox component