Class: Matestack::Ui::Bootstrap::Form::Switch
- Inherits:
-
Core::Form::Checkbox::Checkbox
- Object
- Core::Form::Checkbox::Checkbox
- Matestack::Ui::Bootstrap::Form::Switch
- Defined in:
- app/concepts/matestack/ui/bootstrap/form/switch.rb
Instance Method Summary collapse
Instance Method Details
#response ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 |
# File 'app/concepts/matestack/ui/bootstrap/form/switch.rb', line 7 def response if !.empty? label for: attr_key, class: "form-label", text: input_label if input_label end if !.empty? multiple_switches else true_false_switch end render_form_text end |