Class: Bootstrap::ViewHelpers::Components::Button::Close

Inherits:
Bootstrap::ViewHelpers::Components::Button show all
Defined in:
lib/bootstrap/view_helpers/components/button/close.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
# File 'lib/bootstrap/view_helpers/components/button/close.rb', line 6

def to_html
  button_tag(html_options) do
    (:span, '×', aria: { hidden: true })
  end
end