Class: Bootstrap::ViewHelpers::Components::Modal::Footer
- Inherits:
-
Bootstrap::ViewHelpers::Component
- Object
- Bootstrap::ViewHelpers::Component
- Bootstrap::ViewHelpers::Components::Modal::Footer
- Defined in:
- lib/bootstrap/view_helpers/components/modal/footer.rb
Instance Attribute Summary
Attributes inherited from Bootstrap::ViewHelpers::Component
#block, #options, #style, #view
Instance Method Summary collapse
Methods inherited from Bootstrap::ViewHelpers::Component
Constructor Details
This class inherits a constructor from Bootstrap::ViewHelpers::Component
Instance Method Details
#close_button(label, close_options = {}) ⇒ Object
10 11 12 13 14 |
# File 'lib/bootstrap/view_helpers/components/modal/footer.rb', line 10 def (label, = {}) = .merge() [:label] = label Button.new(view, ).to_html end |
#to_html ⇒ Object
6 7 8 |
# File 'lib/bootstrap/view_helpers/components/modal/footer.rb', line 6 def to_html content_tag(:div, ) { block.call(self) if block.present? } end |