Class: DesignSystem::Generic::DetailsComponent
- Inherits:
-
BaseComponent
- Object
- ViewComponent::Base
- BaseComponent
- DesignSystem::Generic::DetailsComponent
- Defined in:
- app/components/design_system/generic/details_component.rb
Overview
Disclosure widget rendered by ds_details.
Direct Known Subclasses
DesignSystem::Govuk::DetailsComponent, Nhsuk::DetailsComponent
Instance Attribute Summary collapse
-
#summary_text ⇒ Object
readonly
Returns the value of attribute summary_text.
Instance Method Summary collapse
-
#initialize(summary_text) ⇒ DetailsComponent
constructor
A new instance of DetailsComponent.
Methods included from Helpers::CssHelper
Methods included from BrandDerivable
Constructor Details
#initialize(summary_text) ⇒ DetailsComponent
Returns a new instance of DetailsComponent.
5 6 7 8 |
# File 'app/components/design_system/generic/details_component.rb', line 5 def initialize(summary_text) super() @summary_text = summary_text end |
Instance Attribute Details
#summary_text ⇒ Object (readonly)
Returns the value of attribute summary_text.
10 11 12 |
# File 'app/components/design_system/generic/details_component.rb', line 10 def summary_text @summary_text end |