Class: Avo::Index::ResourceGridComponent
- Inherits:
-
BaseComponent
- Object
- ViewComponent::Base
- BaseComponent
- Avo::Index::ResourceGridComponent
- Defined in:
- app/components/avo/index/resource_grid_component.rb
Instance Attribute Summary collapse
-
#actions ⇒ Object
readonly
Returns the value of attribute actions.
Instance Method Summary collapse
-
#initialize(resources: nil, resource: nil, reflection: nil, parent_record: nil, parent_resource: nil, actions: nil) ⇒ ResourceGridComponent
constructor
A new instance of ResourceGridComponent.
Methods inherited from BaseComponent
Constructor Details
#initialize(resources: nil, resource: nil, reflection: nil, parent_record: nil, parent_resource: nil, actions: nil) ⇒ ResourceGridComponent
Returns a new instance of ResourceGridComponent.
6 7 8 9 10 11 12 13 |
# File 'app/components/avo/index/resource_grid_component.rb', line 6 def initialize(resources: nil, resource: nil, reflection: nil, parent_record: nil, parent_resource: nil, actions: nil) @resources = resources @resource = resource @reflection = reflection @parent_record = parent_record @parent_resource = parent_resource @actions = actions end |
Instance Attribute Details
#actions ⇒ Object (readonly)
Returns the value of attribute actions.
4 5 6 |
# File 'app/components/avo/index/resource_grid_component.rb', line 4 def actions @actions end |