← Back to Components

Pagination

Page navigation input with previous/next bounds and ellipsis truncation.

Interactive Playground

R Code

API Reference

block_pagination()

Page navigation input with bounded previous/next controls and ellipsis truncation.

ArgumentTypeDefaultDescription
input_idcharacterrequiredShiny input id reporting an integer page.
pagesintegerrequiredPositive total page count.
selectedinteger1Initially active page.
sibling_countinteger1Visible page links on each side of the active page.
show_edgeslogicalTRUEKeep the first and last pages visible.
disabledlogicalFALSEDisable all page controls.
stylecharacter | listNULLInline wrapper styles.
classcharacterNULLAdditional wrapper class.

update_block_pagination()

Updates the page count, active page, disabled state, class, or style.

ArgumentTypeDefaultDescription
sessionShinySessionrequiredActive Shiny session.
input_idcharacterrequiredTarget pagination input id.
pagesintegerNULLNew total page count.
selectedintegerNULLNew active page.
disabledlogicalNULLNew disabled state.
notifylogicalTRUENotify Shiny when selection changes.