Class: GovukComponent::Tabs
- Includes:
- ViewComponent::Slotable
- Defined in:
- app/components/govuk_component/tabs.rb
Defined Under Namespace
Classes: Tab
Instance Attribute Summary collapse
-
#title ⇒ Object
Returns the value of attribute title.
Attributes included from GovukComponent::Traits::CustomHtmlAttributes
Instance Method Summary collapse
-
#initialize(title:, classes: [], html_attributes: {}) ⇒ Tabs
constructor
A new instance of Tabs.
Methods inherited from Base
Methods included from GovukComponent::Traits::CustomClasses
Constructor Details
#initialize(title:, classes: [], html_attributes: {}) ⇒ Tabs
Returns a new instance of Tabs.
9 10 11 12 13 |
# File 'app/components/govuk_component/tabs.rb', line 9 def initialize(title:, classes: [], html_attributes: {}) super(classes: classes, html_attributes: html_attributes) self.title = title end |
Instance Attribute Details
#title ⇒ Object
Returns the value of attribute title.
4 5 6 |
# File 'app/components/govuk_component/tabs.rb', line 4 def title @title end |