Skip to contents

Change the current page or total pages from the server.

Usage

update_ds_pagination(
  session = shiny::getDefaultReactiveDomain(),
  inputId,
  current = NULL,
  total = NULL
)

Arguments

session

The Shiny session object

inputId

The input ID of the pagination component

current

The new current page number

total

The new total number of pages

Value

Called for its side effect. Returns NULL invisibly.

Examples

if (FALSE) { # \dontrun{
update_ds_pagination(session, "pager", current = 1)
} # }