Class: Bs5::CarouselComponent

Inherits:
ViewComponent::Base
  • Object
show all
Includes:
ComponentsHelper, ViewComponent::SlotableV2
Defined in:
app/components/bs5/carousel_component.rb

Constant Summary collapse

%i[interval keyboard pause slide wrap touch].freeze

Constants included from ComponentsHelper

Bs5::ComponentsHelper::COMPONENTS

Instance Method Summary collapse

Methods included from ComponentsHelper

#bs5_collapse, #bs5_popover, #bs5_tooltip

Constructor Details

#initialize(options = {}) ⇒ CarouselComponent

Returns a new instance of CarouselComponent.



13
14
15
16
# File 'app/components/bs5/carousel_component.rb', line 13

def initialize(options = {})
  @options = options.symbolize_keys
  extract_options
end