Class: Avo::ResourceListingComponent
- Inherits:
-
BaseComponent
- Object
- BaseComponent
- Avo::ResourceListingComponent
- Defined in:
- app/components/avo/resource_listing_component.rb
Instance Method Summary collapse
Instance Method Details
#paginator_component ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 |
# File 'app/components/avo/resource_listing_component.rb', line 17 def paginator_component Avo::PaginatorComponent.new( pagy: @pagy, turbo_frame: @turbo_frame, index_params: @index_params, resource: @resource, parent_record: @parent_record, parent_resource: @parent_resource, discreet_pagination: field&.discreet_pagination ) end |
#specific_view_component ⇒ Object
13 14 15 |
# File 'app/components/avo/resource_listing_component.rb', line 13 def specific_view_component Avo.view_type_manager.component_for(@resource.view_type) end |