Class: Bs5::Carousel::ItemComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- Bs5::Carousel::ItemComponent
- Includes:
- ViewComponent::SlotableV2
- Defined in:
- app/components/bs5/carousel/item_component.rb
Constant Summary collapse
- COMPONENT_OPTIONS =
%i[interval].freeze
Instance Attribute Summary collapse
-
#active ⇒ Object
Returns the value of attribute active.
Instance Method Summary collapse
- #active? ⇒ Boolean
-
#initialize(options = {}) ⇒ ItemComponent
constructor
A new instance of ItemComponent.
Constructor Details
#initialize(options = {}) ⇒ ItemComponent
Returns a new instance of ItemComponent.
15 16 17 18 |
# File 'app/components/bs5/carousel/item_component.rb', line 15 def initialize( = {}) @options = .symbolize_keys end |
Instance Attribute Details
#active ⇒ Object
Returns the value of attribute active.
13 14 15 |
# File 'app/components/bs5/carousel/item_component.rb', line 13 def active @active end |
Instance Method Details
#active? ⇒ Boolean
20 21 22 |
# File 'app/components/bs5/carousel/item_component.rb', line 20 def active? active end |