Class: Avo::Index::GridItemComponent

Inherits:
BaseComponent
  • Object
show all
Includes:
Fields::Concerns::HasHTMLAttributes, ResourcesHelper
Defined in:
app/components/avo/index/grid_item_component.rb

Constant Summary

Constants included from Concerns::FindAssociationField

Concerns::FindAssociationField::ASSOCIATIONS

Instance Method Summary collapse

Methods included from Fields::Concerns::HasHTMLAttributes

#get_html

Methods included from ResourcesHelper

#field_wrapper, #filter_wrapper, #index_field_wrapper, #item_selector_data_attributes, #resource_grid, #resource_show_path, #resource_table

Methods inherited from BaseComponent

#has_with_trial

Methods included from Concerns::FindAssociationField

#find_association_field

Instance Method Details

#after_initializeObject



13
14
15
16
# File 'app/components/avo/index/grid_item_component.rb', line 13

def after_initialize
  @card = Avo::ExecutionContext.new(target: @resource.grid_view[:card], resource: @resource, record: @resource.record).handle
  @whole_html = Avo::ExecutionContext.new(target: @resource.grid_view[:html], resource: @resource, record: @resource.record).handle
end