Class: Components::CheckBoxInputRow
- Inherits:
-
InputRow
- Object
- InputRow
- Components::CheckBoxInputRow
- Defined in:
- app/components/check_box_input_row.rb
Instance Method Summary collapse
Instance Method Details
#input_element ⇒ Object
2 3 4 5 6 |
# File 'app/components/check_box_input_row.rb', line 2 def input_element div class: "form-switch" do @form.check_box(@attribute, {class: "form-check-input form-check-inline"}.merge()) end end |
#label_class ⇒ Object
8 9 10 |
# File 'app/components/check_box_input_row.rb', line 8 def label_class nil end |