Skip to contents

Create a Tabulator widget

Usage

tabulator(
  data,
  options = list(),
  elementId = NULL,
  readOnly = FALSE,
  columnHeaders = NULL,
  hide = NULL,
  fixedCols = NULL,
  stretched = c("all", "last", "none"),
  dropDown = list(),
  css = NULL,
  add_selector_bar = FALSE,
  add_select_column = FALSE,
  return_select_column = FALSE,
  return_select_column_name = "row_select",
  add_export_bar = FALSE,
  export_filename = "data",
  columnOrder = NULL,
  columns = NULL
)

Arguments

data

A data frame or matrix, or NULL for empty table

options

A list of Tabulator.js options

elementId

The ID of the element

readOnly

A boolean for the whole table, or a vector of column ids or names (no mixing)

columnHeaders

Custom column headers

hide

A vector of column ids or names to hide

fixedCols

A vector of column ids or names, columns will be fixed from first to the specified ones

stretched

Stretching mode for columns (default: "all")

dropDown

A list of dropdown options for specific columns

css

Optional path to custom CSS file

add_selector_bar

Boolean to add a selector bar (default: FALSE)

add_select_column

Boolean to add a select column (default: FALSE)

return_select_column

Boolean to include selection status in returned data (default: FALSE)

return_select_column_name

Name for the returned selection column (default: "row_select")

add_export_bar

Boolean to add an export bar with CSV and JSON download buttons (default: FALSE)

export_filename

Base filename for exported files (default: "data")

columnOrder

A character vector specifying the desired column order (default: NULL)

columns

Manual columns setting. If set, auto creation is skipped.