Events

Listen to events using the event bus. E.g

Event.$on('vue-form.sending', ()=> {})

Note: If you used the name prop to identify the form, all events will be "namespaced", e.g vue-form.my-form.sending

vue-form.sending (ajax form)

Fires off when the form is being sent. A message will automatically appear in the status bar.

vue-form.sent (ajax or client form)

Fires off after the form has been sent successfully. Sends through the form data. The status bar will show the response returned from the server, if it is a string, or else the designated text.

vue-form.invalid.client

Fires off after form submission was prevented due to client-side errors. Sends through the errors

vue-form.invalid.server (ajax form)

Fires off after the form returned an invalid response from the server. Sends through the response

vue-form.change::field_name

Fires off whenever a field's value is changed. Send through the name of the field, as well as new and old values.
This allows for using fields independently of the form.

vue-form.change

Global change event. Sends through the name of the changed field, in addition to the old and new values

results matching ""

    No results matching ""