Skip to contents

Set pagination options

Usage

set_options_pagination(
  widget,
  pagination = TRUE,
  pagination_size = 10,
  pagination_size_selector = FALSE,
  pagination_add_row = c("page", "table"),
  ...
)

Arguments

widget

A tabulator() HTML widget.

pagination

(bool): Whether to enable pagination.

pagination_size

(integer): Number of rows on each page.

pagination_size_selector

(list): Add pagination size selector.

pagination_add_row

(character): Where to add rows to the table when pagination is enabled.

...

Further options.

Value

The updated tabulator() HTML widget

Examples

tabulator(iris) |>
  set_options_pagination(pagination_size_selector = c(10, 20, 50))