Bind a DataTables v2 server-side endpoint to a widget id
Source:R/dt2_server_processing.R
dt2_bind_server.RdBind a DataTables v2 server-side endpoint to a widget id
Usage
dt2_bind_server(
id,
data,
session = shiny::getDefaultReactiveDomain(),
handler = NULL,
rows_all = TRUE
)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(...). A custom handler may include
dt2_rows_all/dt2_rows_current(1-based row indices) in its result to feedinput$<id>_rows_allandinput$<id>_rows_current; seedt2_ssp_handler().- rows_all
Passed to
dt2_ssp_handler()whenhandlerisNULL: whether the default handler ships the filtered row indices to the client.