class Bootstrap4RailsComponents::Bootstrap::Components::DropdownHeader

Bootstrap Dropdown Header Component getbootstrap.com/docs/4.1/components/dropdowns/#headers

Public Instance Methods

component_family() click to toggle source
# File lib/bootstrap4_rails_components/bootstrap/components/dropdown_header.rb, line 13
def component_family
  :dropdown
end
heading() click to toggle source
# File lib/bootstrap4_rails_components/bootstrap/components/dropdown_header.rb, line 9
def heading
  options.fetch(:heading, '')
end
render() click to toggle source
# File lib/bootstrap4_rails_components/bootstrap/components/dropdown_header.rb, line 17
def render
  content_tag(:h6, heading, html_options)
end