Submit
This form component renders A form submit button, styled as a Bootstrap button
, implemented in Ruby. Use it like any of the other matestack form components in your apps, pages and components. It offers customizable options to simply achieve what is possible in Bootstrap with this component. See below for more information about the configuration options.
bs_form_submit(*args, &block)
bs_form_submit(*args, &block)
Renders a Bootstrap button that acts as a form submit trigger.
Optional options
button_variant
- Expects a symbol that defines the Bootstrap style. Defaults to:primary
spinner_variant
- Expects a symbol that defines the Bootstrap loading spinner style. Defaults to:light, size: :sm
text
- Expects a string, the content of which get displayed within the buttonloading_text
- Expects a string, the content of which get displayed while the button is in its "loading"-statussize
- Expects a symbol that defines the Bootstrap button sizeclass
- Additional custom CSS class applied to buttonloading_class
- Additional custom CSS class applied to button during submission
Examples
Example 1: Basic usage without any configuration
Example 2: Custom text and loading text
Example 3: Default texts, custom button and spinner variant
Example 4: Default texts & variants, different size
Example 5: Non-default text, loading_text, button_variant, spinner_variant, size plus additional, custom class & loading_class
Last updated