Class: Bootstrap::ViewHelpers::Components::Button::Checkbox

Inherits:
Bootstrap::ViewHelpers::Components::Button show all
Defined in:
lib/bootstrap/view_helpers/components/button/checkbox.rb

Constant Summary

Constants inherited from Bootstrap::ViewHelpers::Components::Button

TYPES

Instance Attribute Summary

Attributes inherited from Bootstrap::ViewHelpers::Component

#block, #options, #style, #view

Instance Method Summary collapse

Methods inherited from Bootstrap::ViewHelpers::Components::Button

build

Methods inherited from Bootstrap::ViewHelpers::Component

#initialize

Constructor Details

This class inherits a constructor from Bootstrap::ViewHelpers::Component

Instance Method Details

#to_htmlObject



6
7
8
9
10
11
# File 'lib/bootstrap/view_helpers/components/button/checkbox.rb', line 6

def to_html
  input_options = input_html_options
  (:label, html_options) do
    (:input, label, input_options)
  end
end