Class: UI::TableHeadComponent

Inherits:
ViewComponent::Base
  • Object
show all
Includes:
TableHeadBehavior
Defined in:
app/view_components/ui/table_head_component.rb

Instance Method Summary collapse

Methods included from TableHeadBehavior

#head_classes, #head_html_attributes, #render_head

Constructor Details

#initialize(classes: "", **attributes) ⇒ TableHeadComponent

Returns a new instance of TableHeadComponent.



6
7
8
9
# File 'app/view_components/ui/table_head_component.rb', line 6

def initialize(classes: "", **attributes)
  @classes = classes
  @attributes = attributes
end

Instance Method Details

#callObject



11
12
13
# File 'app/view_components/ui/table_head_component.rb', line 11

def call
   :th, content, **head_html_attributes.deep_merge(@attributes)
end