Class: Railsboot::CarouselComponent
- Defined in:
- app/components/railsboot/carousel_component.rb
Constant Summary
Constants inherited from Component
Railsboot::Component::COLORS, Railsboot::Component::DEFAULT_COLOR
Instance Method Summary collapse
-
#initialize(id:, **html_attributes) ⇒ CarouselComponent
constructor
A new instance of CarouselComponent.
Constructor Details
#initialize(id:, **html_attributes) ⇒ CarouselComponent
Returns a new instance of CarouselComponent.
4 5 6 7 8 9 10 11 12 13 |
# File 'app/components/railsboot/carousel_component.rb', line 4 def initialize(id:, **html_attributes) @id = id @html_attributes = html_attributes @html_attributes[:id] = @id @html_attributes[:class] = class_names( "carousel", "slide" ) end |