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.