Pagination
Description
Create a row of page links.
Usage
bc_pagination(..., label = "pagination")
bc_pagination_item(item, href = "#", current = FALSE, ...)
bc_pagination_ellipsis()
bc_pagination_previous(label = "Previous", href = "#")
bc_pagination_next(label = "Next", href = "#")
Arguments
| Argument | Description |
|---|---|
... |
For bc_pagination(), items from bc_pagination_item(), bc_pagination_previous(), bc_pagination_next() and bc_pagination_ellipsis(). For bc_pagination_item(), extra tag attributes for the link. |
label |
String. For bc_pagination(), the accessible name, which defaults to "pagination". For bc_pagination_previous() and bc_pagination_next(), the link text. |
item |
String. The page label. |
href |
String. The link URL. Defaults to "#". |
current |
Bool. Whether this is the current page, shown with the outline style. Defaults to FALSE. |
Value
An htmltools tag.
Examples
bc_pagination(
bc_pagination_previous(),
bc_pagination_item("1", href = "#"),
bc_pagination_item("2", href = "#", current = TRUE),
bc_pagination_item("3", href = "#"),
bc_pagination_ellipsis(),
bc_pagination_next()
)