Class: Matestack::Ui::Bootstrap::Form::Switch

Inherits:
Checkbox
  • Object
show all
Defined in:
lib/matestack/ui/bootstrap/form/switch.rb

Instance Method Summary collapse

Instance Method Details

#responseObject



9
10
11
12
13
14
15
16
17
# File 'lib/matestack/ui/bootstrap/form/switch.rb', line 9

def response
  div class: "matestack-ui-bootstrap-switch" do
    label input_label, class: "form-label", ":for": id if input_label && multiple?
    render_options
    render_errors
    plain context.form_text
    render_form_text if context.form_text
  end
end