Class: Matestack::Ui::Bootstrap::Components::Card
- Inherits:
-
Component
- Object
- Component
- Matestack::Ui::Bootstrap::Components::Card
- Defined in:
- app/concepts/matestack/ui/bootstrap/components/card.rb
Instance Method Summary collapse
Instance Method Details
#response ⇒ Object
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
# File 'app/concepts/matestack/ui/bootstrap/components/card.rb', line 19 def response div card_attributes do if header || slots && slots[:header] header_partial end img_partial :top unless img_pos == :bottom div class: content_wrapper_class do body_partial if title || body || slots && slots[:body] # custom body components # needed a div otherwise it will be displayed below footer div class: "p-3 pt-1" do yield_components end img_partial :bottom if img_pos == :bottom if || slots && slots[:footer] end end end |