The button classification is given to the following types:
Formulate determines what becomes the text of the button in the following order:
- The default slot passed in
Both types output the same markup except that
on the button element itself which is necessary to trigger form submissions.
<FormulateInput type="button" label="Buy it now" />
You may also use the default slot to pass more complex content into the button.
<FormulateInput type="button" disabled > Loading <span class="loader" /> </FormulateInput>
There is no model binding or label element for button input types.
Submit elements have the same syntax as buttons, but they are able to submit
<FormulateForm @submit="showAlert" > <FormulateInput type="submit" name="Submit this form!" /> </FormulateForm>
# Slot Component 2.5
The button input has one slot (
#default) with a single Slot Component:
|Slot component name||Description|
| ||This slot component renders in the |