Class: Anchor::TableComponent::ColumnComponent
- Inherits:
-
Component
- Object
- ViewComponent::Base
- Component
- Anchor::TableComponent::ColumnComponent
- Defined in:
- app/components/anchor/table_component.rb
Constant Summary
Constants included from ViewHelper
Instance Attribute Summary collapse
-
#header ⇒ Object
readonly
Returns the value of attribute header.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(header:, value:, **kwargs) ⇒ ColumnComponent
constructor
A new instance of ColumnComponent.
Methods inherited from Component
Methods included from ViewHelper
#anchor_form_with, #anchor_svg, #deep_blank?, #merge_options, #popover_trigger_attributes
Methods included from FetchOrFallbackHelper
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
#header ⇒ Object (readonly)
Returns the value of attribute header.
131 132 133 |
# File 'app/components/anchor/table_component.rb', line 131 def header @header end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
131 132 133 |
# File 'app/components/anchor/table_component.rb', line 131 def value @value end |