Class: DsfrComponent::TabsComponent
- Defined in:
- app/components/dsfr_component/tabs_component.rb
Defined Under Namespace
Classes: TabComponent
Constant Summary
Constants inherited from Base
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(label: nil, classes: [], html_attributes: {}) ⇒ TabsComponent
constructor
A new instance of TabsComponent.
Constructor Details
#initialize(label: nil, classes: [], html_attributes: {}) ⇒ TabsComponent
Returns a new instance of TabsComponent.
5 6 7 8 9 10 |
# File 'app/components/dsfr_component/tabs_component.rb', line 5 def initialize(label: nil, classes: [], html_attributes: {}) @label = label @tabs = [] super(classes: classes, html_attributes: html_attributes) end |