Module: Bootstrap::AccordionHelper
- Defined in:
- app/helpers/bootstrap/accordion_helper.rb
Overview
Rails helpers for building Bootstrap accordions.
See: http://twitter.github.io/bootstrap/javascript.html#collapse
<%= accordion do %>
<%= accordion_group('Section 1', open: true) do %>
content for group 1
<% end >
<%= accordion_group('Section 1') do %>
content for group 2
<% end %>
<% end %>
Instance Method Summary collapse
-
#accordion(options = {}) { ... } ⇒ String
Returns the html for a Bootstrap accordion.
-
#accordion_group(text, options = {}) { ... } ⇒ Object
Returns the html for a Bootstrap accordion group.
Instance Method Details
#accordion(options = {}) { ... } ⇒ String
Returns the html for a Bootstrap accordion.