observe_dt2_events: Observe DataTables events published by dt2.js

View source: R/dt2_shiny.R

observe_dt2_eventsR Documentation

Observe DataTables events published by dt2.js

Description

Listen for table events (init, draw, order, search, page, select, deselect).

Usage

observe_dt2_events(input, id, handler)

Arguments

input

Shiny input object.

id

Widget ID.

handler

Function with signature ⁠(event, type, indexes, rowData)⁠.

Value

No return value, called for side effects. Sets up a Shiny observer that calls handler whenever the table emits an event.


DT2 documentation built on June 14, 2026, 9:06 a.m.