class Bootstrap4RailsComponents::Bootstrap::Components::NavbarToggler
Bootstrap
Navbar
Component getbootstrap.com/docs/4.1/components/navbar/
Public Instance Methods
component_family()
click to toggle source
Pass through to collapse component def collapse
options.fetch(:collapse, nil)
end
# File lib/bootstrap4_rails_components/bootstrap/components/navbar_toggler.rb, line 16 def component_family :navbar end
render() { |: body)| ... }
click to toggle source
Calls superclass method
Bootstrap4RailsComponents::Bootstrap::Components::Base#render
# File lib/bootstrap4_rails_components/bootstrap/components/navbar_toggler.rb, line 20 def render super do if body (block_given? ? yield : body) else content_tag(:span, nil, class: 'navbar-toggler-icon') end end end
Private Instance Methods
base_element()
click to toggle source
# File lib/bootstrap4_rails_components/bootstrap/components/navbar_toggler.rb, line 32 def base_element :button end