Class: PhlexKit::DataTableToolbar

Inherits:
BaseComponent show all
Defined in:
app/components/phlex_kit/data_table/data_table_toolbar.rb

Overview

Row above the table for search / bulk actions / column toggle. See data_table.rb.

Instance Method Summary collapse

Methods inherited from BaseComponent

#on

Constructor Details

#initialize(**attrs) ⇒ DataTableToolbar

Returns a new instance of DataTableToolbar.



5
6
7
# File 'app/components/phlex_kit/data_table/data_table_toolbar.rb', line 5

def initialize(**attrs)
  @attrs = attrs
end

Instance Method Details

#view_templateObject



9
10
11
# File 'app/components/phlex_kit/data_table/data_table_toolbar.rb', line 9

def view_template(&)
  div(**mix({ class: "pk-data-table-toolbar" }, @attrs), &)
end