| dt2_length_menu | R Documentation |
Configures the entries-per-page dropdown.
dt2_length_menu(options = list(), values = c(10, 25, 50, -1), labels = NULL)
options |
Options list. |
values |
Numeric vector of page lengths (e.g., |
labels |
Optional character vector of labels. If |
Updated options.
opts <- dt2_length_menu(values = c(5, 10, 25, -1))
dt2(iris, options = opts)
opts <- dt2_length_menu(values = c(10, 50, 100), labels = c("10", "50", "100"))
dt2(iris, options = opts)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.