vue-select
  • Introduction
  • Installation
  • Usage
  • Props
  • Slots
  • Events
  • Components
  • Layout & Theming
  • VSelectOption
  • Changelog
Powered by GitBook
On this page

Was this helpful?

Usage

PreviousInstallationNextProps

Last updated 6 years ago

Was this helpful?

Examples

Basic:

<v-select v-model="name" :from="['John', 'Jane']" />

Non primitive options + tagging + custom tagging keys. v-model is an array to enable multiple selection:

<v-select v-model="users" as="name" 
    :from="[{name: 'John', id: 1}, {name: 'Jane', id: 2}]" 
    tagging :tag-keys="[9, 32, 188]" />

Fetch options from the server with dynamic URL that depends on the phrase:

<v-select v-model="user" as="name:id" from="/users?q=%s" />

Check the for more examples:

fiddle
@desislavsd/vue-select examples