Class: Matestack::Ui::Bootstrap::Components::Carousel

Inherits:
BaseVueJsComponent show all
Defined in:
lib/matestack/ui/bootstrap/components/carousel.rb

Instance Method Summary collapse

Instance Method Details

#responseObject



12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/matestack/ui/bootstrap/components/carousel.rb', line 12

def response
  div carousel_attributes do
    # carousel indicator
    indicator_partial if context.indicators.present?
    # carousel content
    div class: "carousel-inner" do
      yield if block_given?
      carousel_partial if context.items
    end
    controls_partial if context.controls
  end
end