Class: FlexiAdmin::Components::Resources::IndexPageComponent

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(resources, context_params:, scope:, show_search: true, title: nil, subtitle: nil) ⇒ IndexPageComponent

Returns a new instance of IndexPageComponent.



10
11
12
13
14
15
16
17
# File 'lib/flexi_admin/components/resources/index_page_component.rb', line 10

def initialize(resources, context_params:, scope:, show_search: true, title: nil, subtitle: nil)
  @resources = resources
  @context_params = context_params
  @scope = scope
  @title = title
  @show_search = show_search
  @subtitle = subtitle
end

Instance Attribute Details

#context_paramsObject (readonly)

Returns the value of attribute context_params.



5
6
7
# File 'lib/flexi_admin/components/resources/index_page_component.rb', line 5

def context_params
  @context_params
end

#resourcesObject (readonly)

Returns the value of attribute resources.



5
6
7
# File 'lib/flexi_admin/components/resources/index_page_component.rb', line 5

def resources
  @resources
end

#scopeObject (readonly)

Returns the value of attribute scope.



5
6
7
# File 'lib/flexi_admin/components/resources/index_page_component.rb', line 5

def scope
  @scope
end

#show_searchObject (readonly)

Returns the value of attribute show_search.



5
6
7
# File 'lib/flexi_admin/components/resources/index_page_component.rb', line 5

def show_search
  @show_search
end

#subtitleObject (readonly)

Returns the value of attribute subtitle.



5
6
7
# File 'lib/flexi_admin/components/resources/index_page_component.rb', line 5

def subtitle
  @subtitle
end

#titleObject (readonly)

Returns the value of attribute title.



5
6
7
# File 'lib/flexi_admin/components/resources/index_page_component.rb', line 5

def title
  @title
end