View Source PetalComponents.Pagination (petal_components v1.0.6)
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 tonil
.current_page
(:integer
) - sets the current page. Defaults tonil
.sibling_count
(:integer
) - sets a sibling count. Defaults to1
.boundary_count
(:integer
) - sets a boundary count. Defaults to1
. Global attributes are accepted.