Class: PhlexKit::TableHead
- Inherits:
-
BaseComponent
- Object
- Phlex::HTML
- BaseComponent
- PhlexKit::TableHead
- Defined in:
- app/components/phlex_kit/table/table_head.rb
Overview
A header cell (
Instance Method Summary collapse
-
#initialize(**attrs) ⇒ TableHead
constructor
A new instance of TableHead.
- #view_template(&block) ⇒ Object
Methods inherited from BaseComponent
Constructor Details
#initialize(**attrs) ⇒ TableHead
Returns a new instance of TableHead.
4 5 6 |
# File 'app/components/phlex_kit/table/table_head.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_head.rb', line 8 def view_template(&block) th(**mix({ class: "pk-table-head" }, @attrs), &block) end |