Class: Matestack::Ui::Bootstrap::Form::Checkbox

Inherits:
Core::Form::Checkbox::Checkbox
  • Object
show all
Defined in:
app/concepts/matestack/ui/bootstrap/form/checkbox.rb

Instance Method Summary collapse

Instance Method Details

#responseObject



7
8
9
10
11
12
13
14
15
16
17
# File 'app/concepts/matestack/ui/bootstrap/form/checkbox.rb', line 7

def response
  if !checkbox_options.empty?
    label for: attr_key,  class: "form-label", text: input_label if input_label
  end
  if !checkbox_options.empty?
    multiple_checkboxes
  else
    true_false_checkbox
  end
  render_form_text
end