Class: DesignSystem::Generic::DetailsComponent

Inherits:
BaseComponent
  • Object
show all
Defined in:
app/components/design_system/generic/details_component.rb

Overview

Disclosure widget rendered by ds_details.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Helpers::CssHelper

#css_class_options_merge

Methods included from BrandDerivable

#brand

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_textObject (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