Components
BaseFormActions
The footer of a BaseForm: submit, cancel, back and next, create another and the error summary button.
components/ui/form/BaseFormActions.vue
Internal part
This is an internal part of BaseForm. You normally use it through BaseForm, but it is documented so you can customise or reuse it.
API
Props
Name | Type | Default | Description |
|---|---|---|---|
form-id | string | — | The id of the form the submit button belongs to. |
submit-label | string | — | The text of the submit button. |
cancel-label | string | — | The text of the cancel button. |
loading | boolean | — | Shows the submit button loading. |
disabled | boolean | — | Disables the actions. |
hide-cancel | boolean | — | Removes the cancel button. |
show-create-another | boolean | — | Shows the “Create another” checkbox. |
is-stepper | boolean | — | Shows back and next instead of a single submit. |
is-last-step | boolean | — | Turns next into submit. |
is-first-step | boolean | — | Hides back. |
error-count | number | — | Invalid fields, for the review button. |
create-another | boolean | false | The value of the “Create another” checkbox. |
Slots
Name | Slot props | Description |
|---|---|---|
#start | — | Actions on the left, filled from #actions-start of BaseForm. |
Events
Name | Payload | Description |
|---|---|---|
@cancel | — | Cancel pressed. |
@update:createAnother | [value: boolean] | The checkbox changed. |
@back | — | Back pressed. |
@next | — | Next pressed. |
@review | — | The review button was pressed. |