Class: Avo::Index::TableRowComponent

Inherits:
BaseComponent
  • Object
show all
Includes:
ResourcesHelper
Defined in:
app/components/avo/index/table_row_component.rb

Instance Method Summary collapse

Methods included from ResourcesHelper

#field_wrapper, #filter_wrapper, #index_field_wrapper, #item_select_all_input, #item_selector_init, #item_selector_input, #resource_grid, #resource_table

Methods inherited from BaseComponent

#has_with_trial

Constructor Details

#initialize(resource: nil, reflection: nil, parent_record: nil, parent_resource: nil, actions: nil) ⇒ TableRowComponent

Returns a new instance of TableRowComponent.



6
7
8
9
10
11
12
# File 'app/components/avo/index/table_row_component.rb', line 6

def initialize(resource: nil, reflection: nil, parent_record: nil, parent_resource: nil, actions: nil)
  @resource = resource
  @reflection = reflection
  @parent_record = parent_record
  @parent_resource = parent_resource
  @actions = actions
end