1.3.9 • Published 3 months ago

@myshell/alvue v1.3.9

Weekly downloads
30
License
ISC
Repository
github
Last release
3 months ago

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 versionPackage versionBranch
2.x1.2.xvue2
3.x1.3.xmaster

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

NameTypeRequiredDefaultDescription
actionStringtrueundefinedURL to post.
methodStringfalsepostHTTP method used to send data.
data-objectObjectfalseundefinedObject to send sent to server If it is not included, form data is sent by input name.
input-parent-selectorStringfalsedivParent of input to append error.
spinnerBooleanfalsefalseAppend loading spinner.
error-classStringfalsenullParent of input to append error class.
axios-configObjectfalse{}Axios config to create the instance.
html-errorsBooleanfalsefalseSupport for displaying errors with html.
enable-button-on-doneBooleanfalsefalseRemove disabled property of submit button after success response.

Events

NameDescription
after-doneTriggered after the server response is successful. Contains response payload.
after-errorTriggered after the server response fails. Contains response payload.
1.3.9

3 months ago

1.2.13

11 months ago

1.2.14

11 months ago

1.2.12

1 year ago

1.2.10

1 year ago

1.2.11

1 year ago

1.2.9

1 year ago

1.3.8

2 years ago

1.3.7

2 years ago

1.3.6

2 years ago

1.2.7

2 years ago

1.3.5

2 years ago

1.2.6

2 years ago

1.3.4

2 years ago

1.2.5

2 years ago

1.3.3

2 years ago

1.3.2

2 years ago

1.3.1

2 years ago

1.3.0

2 years ago

1.2.4

2 years ago

1.2.3

2 years ago

1.2.2

2 years ago

1.2.1

2 years ago

1.2.0

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago

0.3.8

3 years ago

0.3.7

3 years ago

0.3.6

3 years ago

0.3.5

3 years ago

0.3.4

4 years ago

0.3.2

4 years ago

0.3.1

4 years ago

0.3.3

4 years ago

0.3.0

4 years ago

0.2.1

4 years ago

0.2.2

4 years ago

0.2.0

4 years ago

0.1.5

4 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago