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

Inherits:
VueJsComponent
  • Object
show all
Defined in:
app/concepts/matestack/ui/bootstrap/components/carousel.rb

Instance Method Summary collapse

Instance Method Details

#responseObject



14
15
16
17
18
19
20
21
22
23
24
25
# File 'app/concepts/matestack/ui/bootstrap/components/carousel.rb', line 14

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

#setupObject



10
11
12
# File 'app/concepts/matestack/ui/bootstrap/components/carousel.rb', line 10

def setup
  @component_config["carousel-id"] = carousel_id
end