Sha256: 91004e452e7edee2a7e73ee06ded737dcdcc776e1ca349dcb150638e0c40c185

Contents?: true

Size: 413 Bytes

Versions: 7

Compression:

Stored size: 413 Bytes

Contents

# frozen_string_literal: true

class SolidusAdmin::UI::Table::Pagination::Component < SolidusAdmin::BaseComponent
  # @param prev_link [String] The link to the previous page.
  # @param next_link [String] The link to the next page.
  def initialize(prev_link: nil, next_link: nil)
    @prev_link = prev_link
    @next_link = next_link
  end

  def render?
    @prev_link.present? || @next_link.present?
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
solidus_admin-0.3.2 app/components/solidus_admin/ui/table/pagination/component.rb
solidus_admin-0.3.1 app/components/solidus_admin/ui/table/pagination/component.rb
solidus_admin-0.3.0 app/components/solidus_admin/ui/table/pagination/component.rb
solidus_admin-0.2.0 app/components/solidus_admin/ui/table/pagination/component.rb
solidus_admin-0.1.0 app/components/solidus_admin/ui/table/pagination/component.rb
solidus_admin-0.0.2 app/components/solidus_admin/ui/table/pagination/component.rb
solidus_admin-0.0.1 app/components/solidus_admin/ui/table/pagination/component.rb