Class: Bootstrap4RailsComponents::Bootstrap::Components::Collapse
- Includes:
- Utilities::Collapsible
- Defined in:
- lib/bootstrap4_rails_components/bootstrap/components/collapse.rb
Overview
Bootstrap Collapse Component getbootstrap.com/docs/4.1/components/collapse/
Instance Attribute Summary
Attributes inherited from Base
#body, #options, #view_context
Instance Method Summary collapse
-
#navbar ⇒ Object
def collapsed options.fetch(:collapsed, false) end.
Methods included from Utilities::Collapsible
#collapse, #collapsed, #collapsible
Methods inherited from Base
#component_family, #component_initialize, #data, #href, #html_options, #id, #initialize, #render, #style, #utility_initialize
Constructor Details
This class inherits a constructor from Bootstrap4RailsComponents::Bootstrap::Components::Base
Instance Method Details
#navbar ⇒ Object
def collapsed
.fetch(:collapsed, false)
end
12 13 14 |
# File 'lib/bootstrap4_rails_components/bootstrap/components/collapse.rb', line 12 def .fetch(:navbar, false) end |