vue-auto-complete-input

0.1.7 • Public • Published

vue-auto-complete-input

Install

$ npm install --save vue-auto-complete-input

Register the component : public, or a similar entry point, just import your library using:

import "vue-auto-complete-input";
import 'vue-auto-complete-input/dist/vue-auto-complete-input.css';

How to use :

<label>Lable
    <vue-auto-complete-input
            :name="'description'"
            :options = "[{'id':'', 'text' : ''}]"
            v-model="input.description">
    </vue-auto-complete-input>
</label>

props:

Name Type Description
option Array of object Option list
name String textarea name attribute

v-validate:

<label>Lable
    <vue-auto-complete-input
            :name="'description'"
            v-validate="'required'"
            :class="{'input': true, 'error-border': errors.has('description')}"
            :options = "[{'id':'', 'text' : ''}]"
            v-model="input.description">
    </vue-auto-complete-input>
    <span v-show="errors.has('description')" class="error-font">Error Text!</span>
</label>

Customize configuration

See Configuration Reference.

Package Sidebar

Install

npm i vue-auto-complete-input

Weekly Downloads

2

Version

0.1.7

License

MIT

Unpacked Size

1.99 MB

Total Files

20

Last publish

Collaborators

  • ali.jahanpak
  • ammorteza