Sha256: 49a241fe50eb48f569934e299846654d4473aac819cd28b09b849cf43aaf183c

Contents?: true

Size: 324 Bytes

Versions: 1

Compression:

Stored size: 324 Bytes

Contents

# frozen_string_literal: true

require "will_paginate/array"
module Playbook
  module PbPagination
    class Pagination < ::Playbook::KitBase
      prop :data, type: Playbook::Props::Array,
                  default: []
      def page_data
        data.paginate(page: params[:page], per_page: 1)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
playbook_ui-11.16.0.pre.alpha.pagination.rails1 app/pb_kits/playbook/pb_pagination/pagination.rb