Class: PhlexKit::DataTableToolbar
- Inherits:
-
BaseComponent
- Object
- Phlex::HTML
- BaseComponent
- PhlexKit::DataTableToolbar
- 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
-
#initialize(**attrs) ⇒ DataTableToolbar
constructor
A new instance of DataTableToolbar.
- #view_template ⇒ Object
Methods inherited from BaseComponent
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_template ⇒ Object
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 |