0.1.1 • Published 5 years ago

vue-selector-search v0.1.1

Weekly downloads
15
License
MIT
Repository
github
Last release
5 years ago

vue-selector-search

npm npm

Description

This is a fast-implement vue selector with search available.

Advices, recommendations... are welcome :heart:

Live Demo

TODO List

  • Review styles
  • Add a live demo (Doc)
  • Improve Styling

Usage

There are two ways of usage

Local scoped

  1. Add your import on top of you vue file.
import  VueSelectorSearch  from  'vue-selector-search';
  1. Add as a component into you Vue view/component.
components: {
	VueSelectorSearch
}
  1. Add the component's tag into your template.
<VueSelectorSearch :options="options.roles"  v-model="parameters.roles" />

Global Scoped

  1. Add your import on top of your main.js and add as a Vue plugin
import Vue from 'vue';
import  VueSelectorSearch  from  'vue-selector-search';
Vue.use(VueSelectorSearch);
  1. Use it wherever you want
<vue-selector-search :options="options.roles"  v-model="parameters.roles" />

Parameters

  • options This is a Object with attributes "label" and "value" whose will be displayed on the dropdown.
  • v-model If you work with vue, you know that. Set there the parameter where the component will emit the value.

Return

Array of selected values. Values will be those given in the "options" parameter.

0.1.1

5 years ago

0.1.0

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago