All Projects → eliurkis → vue-chosen

eliurkis / vue-chosen

Licence: other
jQuery Chosen Wrapper for Vue

Programming Languages

Vue
7211 projects

Projects that are alternatives of or similar to vue-chosen

vue-single-select
single select dropdown with autocomplete
Stars: ✭ 43 (+168.75%)
Mutual labels:  chosen

jQuery Chosen Wrapper for Vue

https://harvesthq.github.io/chosen/

Example

new Vue({
  el: "#app",
  data: {
    item: null,
    list: [
      {id: 1, label: 'First'},
      {id: 2, label: 'Second'},
      {id: 3, label: 'Third'},
    ],
    list2: [
      {anotherKey: 1, anotherLabel: 'First'},
      {anotherKey: 2, anotherLabel: 'Second'},
      {anotherKey: 3, anotherLabel: 'Third'},
    ],
    list3: {
      1: "First",
      2: "Second",
      3: "Third"
    }
  }
})
<vue-chosen v-model="item" :options="list"></vue-chosen>
<vue-chosen v-model="item" :options="list2" track-by="anotherKey" label="anotherLabel"></vue-chosen>
<vue-chosen v-model="item" :options="list3"></vue-chosen>

License

The package is open-sourced software licensed under the MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].