0.2.4 • Published 6 years ago

vue-input-groups v0.2.4

Weekly downloads
22
License
MIT
Repository
github
Last release
6 years ago

Vue Input Groups

Vue input groups with validation

Demo and guide

Usage

Import package in your project:

import InputGroup from "vue-input-groups"

//...

components: {
    InputGroup
}

Or, without bundlers:

<link rel="stylesheet" href="css/VueInputGroups.css">
<!--...-->
<script src="js/VueInputGroups.umd.min.js"></script>
new Vue({
    //...
    components: {
        InputGroup: VueInputGroups
    }
})

Then, you should make data-container and field description

//...
components: {
    InputGroups
},
data() {
    return {
        formValue: {
            name: "",
            password: "",
        },
        fields: {
            //keys have to be named as well as keys in formValue
            name: {
                type: "text",
                placeholder: "Enter your name"
            },
            password: {
                type: "password",
                placeholder: "Enter password"
            }
        }
    } 
}

Now, you can make input group in your app

<input-group v-model="formValue"
             :fields="fields">
</input-group>

For more information, go to docs

0.2.4

6 years ago

0.2.3

6 years ago

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.9

6 years ago

0.1.8

6 years ago

0.1.7

6 years ago

0.1.6

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.0

6 years ago