Module: UI::TableHeadBehavior
- Included in:
- TableHead, TableHeadComponent
- Defined in:
- app/behaviors/ui/table_head_behavior.rb
Overview
UI::TableHeadBehavior
Instance Method Summary collapse
Instance Method Details
#head_classes ⇒ Object
22 23 24 25 26 27 |
# File 'app/behaviors/ui/table_head_behavior.rb', line 22 def head_classes TailwindMerge::Merger.new.merge([ head_base_classes, @classes ].compact.join(" ")) end |
#head_html_attributes ⇒ Object
18 19 20 |
# File 'app/behaviors/ui/table_head_behavior.rb', line 18 def head_html_attributes {class: head_classes} end |
#render_head(&content_block) ⇒ Object
13 14 15 16 |
# File 'app/behaviors/ui/table_head_behavior.rb', line 13 def render_head(&content_block) all_attributes = head_html_attributes.deep_merge(@attributes) content_tag(:th, **all_attributes, &content_block) end |