Switch
bs_form_switch(*args, &block)
bs_form_switch(*args, &block)Examples
Example 1: Basic usage with single true/false switch button
bs_form_switch key: :some_switch_input, label: 'Some input'"some_switch_input"=>nil # or true, if the input has been clicked or false if the input was clicked againExample 2: Basic usage with an Array
Example 3: Basic usage with a Hash
Example 4: Using a label
Example 5: Using a form_text
Example 6: Using the disabled option
disabled optionExample 7: Using the :inline variant
:inline variantLast updated