Class: SolidusAdmin::UI::Table::Pagination::Component
- Inherits:
-
BaseComponent
- Object
- BaseComponent
- SolidusAdmin::UI::Table::Pagination::Component
- Defined in:
- app/components/solidus_admin/ui/table/pagination/component.rb
Instance Method Summary collapse
-
#initialize(prev_link: nil, next_link: nil) ⇒ Component
constructor
A new instance of Component.
- #render? ⇒ Boolean
Constructor Details
#initialize(prev_link: nil, next_link: nil) ⇒ Component
Returns a new instance of Component.
6 7 8 9 |
# File 'app/components/solidus_admin/ui/table/pagination/component.rb', line 6 def initialize(prev_link: nil, next_link: nil) @prev_link = prev_link @next_link = next_link end |
Instance Method Details
#render? ⇒ Boolean
11 12 13 |
# File 'app/components/solidus_admin/ui/table/pagination/component.rb', line 11 def render? @prev_link.present? || @next_link.present? end |