12.9.1

Pagination

Default

  • 1
  • 3
  • 4
  • 5

  • Disclaimer

    Our Pagination kit depends on the will_paginate library. Please follow the basic will_paginate setup.

    Once you have perfomed the paginated query in your controller file you can use our kit (see code example below) instead of <%= will_paginate @users %> in your view file.

    You need to add: require "playbook/pagination_renderer" in your apps controller file.



    Available Props

    • classname
    • dark
    • margin
    • margin_bottom
    • margin_left
    • margin_right
    • margin_top
    • margin_x
    • margin_y
    • max_width
    • padding
    • padding_bottom
    • padding_left
    • padding_right
    • padding_top
    • padding_x
    • padding_y
    • z_index
    • number_spacing
    • shadow
    • line_height
    • display
    • cursor
    • flex_direction
    • flex_wrap
    • justify_content
    • justify_self
    • align_items
    • align_content
    • align_self
    • flex
    • flex_grow
    • flex_shrink
    • order
    • id
    • data
    • aria
    • children
    • model
    • view