Skip to contents

This function completely replaces the existing data in a Tabulator table with new data. Unlike tabulator_update_data, this function replaces the entire dataset at once rather than updating it in chunks.

Usage

tabulator_replace_data(proxy, data)

Arguments

proxy

A Tabulator proxy object created by tabulator_proxy()

data

A data frame containing the new data to display in the table

Value

None (called for side effect)

Examples

if (FALSE) { # \dontrun{
# In server function
proxy <- tabulator_proxy("table_id")
new_data <- data.frame(
  name = c("John", "Jane"),
  age = c(25, 30)
)
tabulator_replace_data(proxy, new_data)
} # }