Class: Bootstrap4RailsComponents::Bootstrap::Components::Collapse

Inherits:
Base
  • Object
show all
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

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

def collapsed

options.fetch(:collapsed, false)

end



12
13
14
# File 'lib/bootstrap4_rails_components/bootstrap/components/collapse.rb', line 12

def navbar
  options.fetch(:navbar, false)
end