Pagination
Pagination with page navigation, next and previous links.
Anatomy
Pagination do |p|p.previousp.linkp.ellipsisp.nextend
API Reference
Pagination
The root navigation container for pagination controls. Provides proper ARIA roles and semantic structure for page navigation.
Name | Type | |
---|---|---|
attributes | keyword arguments |
Pagination#item
Name | Type | |
---|---|---|
attributes | keyword arguments |
Pagination#link
Rails link_to helper that renders a pagination link.
Name | Type | Default |
---|---|---|
name | string | nil |
The page number or text content (first argument to link_to). Required unless using a block. | ||
options | hash | nil |
URL or path options passed to link_to (second argument). Typically contains page parameter. | ||
html_options | hash | nil |
Pagination#previous
Rails link_to helper that renders a pagination link.
Name | Type | Default |
---|---|---|
options | hash | nil |
URL or path options for the previous page link. | ||
html_options | hash | nil |
HTML attributes for the previous link. |
Pagination#next
Rails link_to helper that renders a pagination link.
Name | Type | Default |
---|---|---|
options | hash | nil |
URL or path options for the next page link. | ||
html_options | hash | nil |
HTML attributes for the next link. |
Pagination#ellipsis
Visual indicator for skipped pages in pagination. Displays three dots with proper ARIA hidden attribute and screen reader text.
Name | Type | |
---|---|---|
attributes | keyword arguments |
Examples
On This Page