Class: Anchor::TableComponent::ColumnComponent

Inherits:
Component
  • Object
show all
Defined in:
app/components/anchor/table_component.rb

Constant Summary

Constants included from ViewHelper

ViewHelper::ANCHOR_HELPERS

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Component

generate_id

Methods included from ViewHelper

#anchor_form_with, #anchor_svg, #deep_blank?, #merge_options, #popover_trigger_attributes

Methods included from FetchOrFallbackHelper

#fetch_or_fallback

Constructor Details

#initialize(header:, value:, **kwargs) ⇒ ColumnComponent

Returns a new instance of ColumnComponent.



133
134
135
136
137
138
# File 'app/components/anchor/table_component.rb', line 133

def initialize(header:, value:, **kwargs)
  @header = header
  @value = value

  super(**kwargs)
end

Instance Attribute Details

#headerObject (readonly)

Returns the value of attribute header.



131
132
133
# File 'app/components/anchor/table_component.rb', line 131

def header
  @header
end

#valueObject (readonly)

Returns the value of attribute value.



131
132
133
# File 'app/components/anchor/table_component.rb', line 131

def value
  @value
end