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

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

Direct Known Subclasses

Switch

Instance Method Summary collapse

Instance Method Details

#responseObject



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

def response
  div class: "matestack-ui-bootstrap-form-checkbox" do
    label class: "form-label", text: input_label, for: attr_key if input_label && multiple?
    render_options
    render_errors
    render_form_text unless form_text.nil? # otherwise renders empty div
  end
end