Class: Bs5::TabsComponent

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

Instance Method Summary collapse

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(options = {})
  @options = options.symbolize_keys
  extract_options
end

Instance Method Details

#before_renderObject


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

def before_render
  items.each { |item| item.style = item_style }
end