1.3.9 • Published 1 year ago

@myshell/alvue v1.3.9

Weekly downloads
30
License
ISC
Repository
github
Last release
1 year 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

1 year ago

1.2.13

2 years ago

1.2.14

2 years ago

1.2.12

2 years ago

1.2.10

2 years ago

1.2.11

2 years ago

1.2.9

3 years ago

1.3.8

3 years ago

1.3.7

3 years ago

1.3.6

3 years ago

1.2.7

3 years ago

1.3.5

3 years ago

1.2.6

3 years ago

1.3.4

3 years ago

1.2.5

3 years ago

1.3.3

3 years ago

1.3.2

3 years ago

1.3.1

3 years ago

1.3.0

3 years ago

1.2.4

3 years ago

1.2.3

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago

0.3.8

4 years ago

0.3.7

4 years ago

0.3.6

4 years ago

0.3.5

4 years ago

0.3.4

5 years ago

0.3.2

5 years ago

0.3.1

5 years ago

0.3.3

5 years ago

0.3.0

5 years ago

0.2.1

5 years ago

0.2.2

5 years ago

0.2.0

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago