View Source PetalComponents.Pagination (petal_components v1.1.4)

Link to this section Summary

Functions

In the path param you can specify :page as the place your page number will appear. e.g "/posts/:page" => "/posts/1"

Link to this section Functions

In the path param you can specify :page as the place your page number will appear. e.g "/posts/:page" => "/posts/1"

attributes

Attributes

  • path (:string) - page path. Defaults to "/:page".
  • class (:string) - Parent div CSS class. Defaults to "".
  • link_type (:string) - Defaults to "a".
  • total_pages (:integer) - sets a total page count. Defaults to nil.
  • current_page (:integer) - sets the current page. Defaults to nil.
  • sibling_count (:integer) - sets a sibling count. Defaults to 1.
  • boundary_count (:integer) - sets a boundary count. Defaults to 1. Global attributes are accepted.