Class: Bs5::ExpandableListItemHeaderTitleComponent

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(target_id:) ⇒ ExpandableListItemHeaderTitleComponent

Returns a new instance of ExpandableListItemHeaderTitleComponent.

[View source]

10
11
12
# File 'app/components/bs5/expandable_list_item_header_title_component.rb', line 10

def initialize(target_id:)
  @target_id = target_id
end

Instance Attribute Details

#target_idObject (readonly)

Returns the value of attribute target_id.


8
9
10
# File 'app/components/bs5/expandable_list_item_header_title_component.rb', line 8

def target_id
  @target_id
end