vue-auto-complete-textarea

0.1.71 • Public • Published

vue-auto-complete-textarea

Install

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

Register the component :

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

How to use :

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

props:

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

v-validate:

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

Customize configuration

See Configuration Reference.

/vue-auto-complete-textarea/

    Package Sidebar

    Install

    npm i vue-auto-complete-textarea

    Weekly Downloads

    37

    Version

    0.1.71

    License

    MIT

    Unpacked Size

    2.26 MB

    Total Files

    19

    Last publish

    Collaborators

    • ali.jahanpak
    • ammorteza