Class: FlexiAdmin::Components::Resources::GridView::GridComponent
- Inherits:
-
BaseComponent
- Object
- ViewComponent::Base
- BaseComponent
- FlexiAdmin::Components::Resources::GridView::GridComponent
- Defined in:
- lib/flexi_admin/components/resources/grid_view/grid_component.rb
Instance Attribute Summary collapse
-
#context ⇒ Object
readonly
Returns the value of attribute context.
-
#description_element ⇒ Object
readonly
Returns the value of attribute description_element.
-
#header_element ⇒ Object
readonly
Returns the value of attribute header_element.
-
#image_element ⇒ Object
readonly
Returns the value of attribute image_element.
-
#resources ⇒ Object
readonly
Returns the value of attribute resources.
-
#title_element ⇒ Object
readonly
Returns the value of attribute title_element.
Instance Method Summary collapse
-
#initialize(resources, title_element, header_element, description_element, image_element, context) ⇒ GridComponent
constructor
A new instance of GridComponent.
Constructor Details
#initialize(resources, title_element, header_element, description_element, image_element, context) ⇒ GridComponent
Returns a new instance of GridComponent.
7 8 9 10 11 12 13 14 |
# File 'lib/flexi_admin/components/resources/grid_view/grid_component.rb', line 7 def initialize(resources, title_element, header_element, description_element, image_element, context) @resources = resources @title_element = title_element @header_element = header_element @description_element = description_element @image_element = image_element @context = context end |
Instance Attribute Details
#context ⇒ Object (readonly)
Returns the value of attribute context.
5 6 7 |
# File 'lib/flexi_admin/components/resources/grid_view/grid_component.rb', line 5 def context @context end |
#description_element ⇒ Object (readonly)
Returns the value of attribute description_element.
5 6 7 |
# File 'lib/flexi_admin/components/resources/grid_view/grid_component.rb', line 5 def description_element @description_element end |
#header_element ⇒ Object (readonly)
Returns the value of attribute header_element.
5 6 7 |
# File 'lib/flexi_admin/components/resources/grid_view/grid_component.rb', line 5 def header_element @header_element end |
#image_element ⇒ Object (readonly)
Returns the value of attribute image_element.
5 6 7 |
# File 'lib/flexi_admin/components/resources/grid_view/grid_component.rb', line 5 def image_element @image_element end |
#resources ⇒ Object (readonly)
Returns the value of attribute resources.
5 6 7 |
# File 'lib/flexi_admin/components/resources/grid_view/grid_component.rb', line 5 def resources @resources end |
#title_element ⇒ Object (readonly)
Returns the value of attribute title_element.
5 6 7 |
# File 'lib/flexi_admin/components/resources/grid_view/grid_component.rb', line 5 def title_element @title_element end |