Bootstrap input components for vuejs with validation, and form-group cascade to use with Laravel
Install with npm:
npm install bootinput --save
or just download the package and link the javascript file after your vuejs file.
##Components
NOTE* errors should be an array of errors*
eg: errors = {name:["Name cannot be empty."]}
-
boot-input
:model,type,value,error,label
eg:<boot-input type="text" :model.sync="name" :error="errors.name" label="Name"></boot-input>
-
boot-textarea
:model,value,error,label
eg:<boot-textarea :model.sync="description" :error="errors.description" label="Description"></boot-textarea>
-
boot-select
:model,value,error,label,options
eg:<boot-select :options="{'male':'Male','female':'Female','other':'Other'}" :model.sync="gender" :error="errors.gender" label="Gender"></boot-select>
-
boot-checkbox
:model,value,error,label
eg:<boot-checkbox :model.sync="newsletter" :error="errors.newsletter" label="Newsletter"></boot-input>