Class: Bs5::TabsComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- Bs5::TabsComponent
- Includes:
- ViewComponent::SlotableV2
- Defined in:
- app/components/bs5/tabs_component.rb
Instance Method Summary collapse
- #before_render ⇒ Object
-
#initialize(options = {}) ⇒ TabsComponent
constructor
A new instance of TabsComponent.
Constructor Details
#initialize(options = {}) ⇒ TabsComponent
Returns a new instance of TabsComponent.
9 10 11 12 |
# File 'app/components/bs5/tabs_component.rb', line 9 def initialize( = {}) = .symbolize_keys end |
Instance Method Details
#before_render ⇒ Object
14 15 16 |
# File 'app/components/bs5/tabs_component.rb', line 14 def before_render items.each { |item| item.style = item_style } end |