Class: PhlexKit::TableHeader
- Inherits:
-
BaseComponent
- Object
- Phlex::HTML
- BaseComponent
- PhlexKit::TableHeader
- Defined in:
- app/components/phlex_kit/table/table_header.rb
Overview
The of a PhlexKit::Table. See table.rb.
A new instance of TableHeader. Returns a new instance of TableHeader.
Instance Method Summary
collapse
Methods inherited from BaseComponent
Constructor Details
#initialize(**attrs) ⇒ TableHeader
4
5
6
# File 'app/components/phlex_kit/table/table_header.rb', line 4
def initialize(**attrs)
@attrs = attrs
end
Instance Method Details
#view_template(&block) ⇒ Object
8
9
10
# File 'app/components/phlex_kit/table/table_header.rb', line 8
def view_template(&block)
thead(**mix({ class: "pk-table-header" }, @attrs), &block)
end