switch
form component, 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_switch(*args, &block)
label
- Expects a string, gets displayed before the first input fieldform_text
- Expects a string, gets displayed after the last input fielddisabled
- If set to :true
, the switch input fields are set to disabled and clicking them doesn't yield any effectvariant
- If set to :inline
, the wrapping div
is displayed as inline-block
instead of the default block
disabled
option:inline
variant