Class: PhlexKit::TableFooter

Inherits:
BaseComponent show all
Defined in:
app/components/phlex_kit/table/table_footer.rb

Overview

The of a PhlexKit::Table (e.g. a totals row). See table.rb.

Instance Method Summary collapse

Methods inherited from BaseComponent

#on

Constructor Details

#initialize(**attrs) ⇒ TableFooter

Returns a new instance of TableFooter.



4
5
6
# File 'app/components/phlex_kit/table/table_footer.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_footer.rb', line 8

def view_template(&block)
  tfoot(**mix({ class: "pk-table-footer" }, @attrs), &block)
end