Class: PhlexKit::DataTableBulkActions

Inherits:
BaseComponent
  • Object
show all
Defined in:
app/components/phlex_kit/data_table/data_table_bulk_actions.rb

Overview

Action cluster revealed while rows are selected. See data_table.rb.

Instance Method Summary collapse

Methods inherited from BaseComponent

#on

Constructor Details

#initialize(**attrs) ⇒ DataTableBulkActions

Returns a new instance of DataTableBulkActions.



4
5
6
# File 'app/components/phlex_kit/data_table/data_table_bulk_actions.rb', line 4

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

Instance Method Details

#view_templateObject



8
9
10
11
12
13
# File 'app/components/phlex_kit/data_table/data_table_bulk_actions.rb', line 8

def view_template(&)
  div(**mix({
    class: "pk-data-table-bulk-actions pk-hidden",
    data: { phlex_kit__data_table_target: "bulkActions" }
  }, @attrs), &)
end