1.0.0-docs3 • Published 10 months ago

vue-tags-multiselect v1.0.0-docs3

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

Vue Tags Multiselect

A complex multi-selector.

  • This package consists of a two-layer structure, similar to a dropdown wrapping another dropdown.
  • It copies the HTML content of the option as the display for the tag.

    or you can also generate options using data

  • Finally, it will output an object containing keys and values.

11111

Demo

https://eziopu.github.io/vue-tags-multiselect/

Install

npm install vue-tags-multiselect

Setup

  • In main.js you can mount it as a global Vue component
// vue install
import 'vue-tags-multiselect/dist/style.css'
import VueTagsMultiselect from 'vue-tags-multiselect'
createApp(App).use(VueTagsMultiselect).mount('#app')

or

  • In a specific component (e.g.: Component.vue)
import 'vue-tags-multiselect/dist/style.css'
import { vTagsMultiselect, vTagDropdown, vTagOption } from 'vue-tags-multiselect'

Usage

<v-tags-multiselect v-model="result">
    <v-tag-dropdown value="country">
    <v-tag-option title>
      <i class="fa fa-flag"></i> Country
    </v-tag-option>
    <v-tag-option value="Māre"> Māre </v-tag-option>
    <v-tag-option value="Eldia"> Eldia </v-tag-option>
  </v-tag-dropdown>
    ...
</v-tags-multiselect>

or

<v-tags-multiselect
  v-model="result"
  :options="{
    country: [
      {
        title: true,
        element: `<i class='fa fa-flag'></i> Country`
      },
      'Māre',
      'Eldia'
    ]
  }"
>
  ...
</v-tags-multiselect>
1.0.0-docs3

10 months ago

1.0.0-docs2

11 months ago

1.0.0-docs1

11 months ago

1.0.0

11 months ago