Class: FlexiAdmin::Components::Resources::GridView::GridComponent

Inherits:
BaseComponent
  • Object
show all
Defined in:
lib/flexi_admin/components/resources/grid_view/grid_component.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#contextObject (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_elementObject (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_elementObject (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_elementObject (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

#resourcesObject (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_elementObject (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