@myshell/alvue
ALVue - Ajax Laravel Validator for Vue
ALVue is the update of the library that previously worked with JQuery, this new version includes a Vue component that will help you show the errors of a Laravel FormRequest in its forms.
Version matrix
| Vue.js version | Package version | Branch |
|---|---|---|
| 2.x | 1.2.x | vue2 |
| 3.x | 1.3.x | master |
Installation
npm install @myshell/alvue --save
Import
import alvue from '@myshell/alvue'
Vue.use(alvue);
Usage
<alv-form action="/example-url" method="post" @after-done="reloadPage" :data-object="user">
<div>
<label>Name </label>
<input type="text" name="name" v-model="user.name">
</div>
...
<button type="submit">Save</button>
</alv-form>
Properties
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| action | String | true | undefined | URL to post. |
| method | String | false | post | HTTP method used to send data. |
| data-object | Object | false | undefined | Object to send sent to server If it is not included, form data is sent by input name. |
| input-parent-selector | String | false | div | Parent of input to append error. |
| spinner | Boolean | false | false | Append loading spinner. |
| error-class | String | false | null | Parent of input to append error class. |
| axios-config | Object | false | {} | Axios config to create the instance. |
| html-errors | Boolean | false | false | Support for displaying errors with html. |
| enable-button-on-done | Boolean | false | false | Remove disabled property of submit button after success response. |
Events
| Name | Description |
|---|---|
| after-done | Triggered after the server response is successful. Contains response payload. |
| after-error | Triggered after the server response fails. Contains response payload. |
Related Packages
futurecloud-chatbot-cli
FutureCloud Chatbot Plugin CLI — Install chatbot widget ke Laravel, React, Vue,...
9,073
duplicate-dependencies-webpack-plugin
webpack plugin to find duplicated dependencies from your bundle
332,104
6
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 1.3.9 | ^3.2.25 | ISC | |
| 1.3.8 | ^3.2.25 | ISC | |
| 1.3.7 | ^3.2.25 | ISC | |
| 1.3.6 | ^3.2.25 | ISC | |
| 1.3.5 | ^3.2.25 | ISC | |
| 1.3.4 | ^3.2.25 | ISC | |
| 1.3.3 | ^3.2.25 | ISC | |
| 1.3.2 | ^3.2.25 | ISC | |
| 1.3.1 | ^3.2.25 | ISC | |
| 1.3.0 | ^3.2.25 | ISC | |
| 1.2.14 | ^2.6.12 | ISC | |
| 1.2.13 | ^2.6.12 | ISC | |
| 1.2.12 | ^2.6.12 | ISC | |
| 1.2.11 | ^2.6.12 | ISC | |
| 1.2.10 | ^2.6.12 | ISC | |
| 1.2.9 | ^2.6.12 | ISC | |
| 1.2.7 | ^2.6.12 | ISC | |
| 1.2.6 | ^2.6.12 | ISC | |
| 1.2.5 | ^2.6.12 | ISC | |
| 1.2.4 | ^2.6.12 | ISC | |
| 1.2.3 | ^2.6.12 | ISC | |
| 1.2.2 | ^2.6.12 | ISC | |
| 1.2.1 | ^2.6.12 | ISC | |
| 1.2.0 | ^2.6.12 | ISC | |
| 1.1.0 | ^2.6.12 | ISC | |
| 1.0.0 | ^2.6.12 | ISC | |
| 0.3.8 | ^2.6.12 | ISC | |
| 0.3.7 | ^2.6.12 | ISC | |
| 0.3.6 | ^2.6.12 | ISC | |
| 0.3.5 | ^2.6.12 | ISC |
Showing the latest 30 of 53. See every release on npm