Class: FlexiAdmin::Components::Resources::IndexPageComponent
- Inherits:
-
BaseComponent
- Object
- ViewComponent::Base
- BaseComponent
- FlexiAdmin::Components::Resources::IndexPageComponent
- Defined in:
- lib/flexi_admin/components/resources/index_page_component.rb
Instance Attribute Summary collapse
-
#context_params ⇒ Object
readonly
Returns the value of attribute context_params.
-
#resources ⇒ Object
readonly
Returns the value of attribute resources.
-
#scope ⇒ Object
readonly
Returns the value of attribute scope.
-
#show_search ⇒ Object
readonly
Returns the value of attribute show_search.
-
#subtitle ⇒ Object
readonly
Returns the value of attribute subtitle.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(resources, context_params:, scope:, show_search: true, title: nil, subtitle: nil) ⇒ IndexPageComponent
constructor
A new instance of IndexPageComponent.
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_params ⇒ Object (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 |
#resources ⇒ Object (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 |
#scope ⇒ Object (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_search ⇒ Object (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 |
#subtitle ⇒ Object (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 |
#title ⇒ Object (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 |