Form Submit
The form_submit
component is Vue.js driven child component of the form
component and is used to trigger the parent form
to submit its data.
All child components form_*
(including this component) have to be placed within the scope of the parent form
component, without any other Vue.js driven component like toggle
, async
creating a new scope between the child component and the parent form component! Non-Vue.js component can be placed between form
and form_*
without issues!
Parameters
form_submit
does not take any parameters but yields a given block. This block will be wrapped by a span tag. A click on that span tag and all elements within will submit the form.
Loading state
If you simply want to disable your submit button, you can use a simple Vue.js binding:
If you want to adjust the submit element more flexible while the form is being submitted, you could use the event mechanism of the form in combination with the toggle
component:
in combination with a form config like this:
Last updated