Skip to content

Bind a DataTables v2 server-side endpoint to a widget id

Usage

dt2_bind_server(
  id,
  data,
  session = shiny::getDefaultReactiveDomain(),
  handler = NULL
)

Arguments

id

Output id of the widget (e.g., "tbl").

data

A data.frame with the source data.

session

Shiny session (default: current).

handler

Optional custom handler function(data, req) -> list(...).

Value

No return value, called for side effects. Registers a Shiny observer on session that responds to client-side server-processing requests for the given widget id.