Class: Matestack::Ui::Bootstrap::Components::Accordion
- Inherits:
-
Component
- Object
- Component
- Matestack::Ui::Bootstrap::Components::Accordion
- Defined in:
- app/concepts/matestack/ui/bootstrap/components/accordion.rb
Instance Method Summary collapse
Instance Method Details
#response ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'app/concepts/matestack/ui/bootstrap/components/accordion.rb', line 10 def response div accordion_attributes do div class: "card" do accordion_content_partial if items.present? yield_components end end end |
#setup ⇒ Object
7 8 9 |
# File 'app/concepts/matestack/ui/bootstrap/components/accordion.rb', line 7 def setup @accordion_id = (bs_id.present? ? bs_id : "matestack-accordion-#{SecureRandom.hex(3)}") end |