← 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.
| Argument | Type | Default | Description |
|---|---|---|---|
| input_id | character | required | Shiny input id reporting an integer page. |
| pages | integer | required | Positive total page count. |
| selected | integer | 1 | Initially active page. |
| sibling_count | integer | 1 | Visible page links on each side of the active page. |
| show_edges | logical | TRUE | Keep the first and last pages visible. |
| disabled | logical | FALSE | Disable all page controls. |
| style | character | list | NULL | Inline wrapper styles. |
| class | character | NULL | Additional wrapper class. |
update_block_pagination()
Updates the page count, active page, disabled state, class, or style.
| Argument | Type | Default | Description |
|---|---|---|---|
| session | ShinySession | required | Active Shiny session. |
| input_id | character | required | Target pagination input id. |
| pages | integer | NULL | New total page count. |
| selected | integer | NULL | New active page. |
| disabled | logical | NULL | New disabled state. |
| notify | logical | TRUE | Notify Shiny when selection changes. |