我试图在单击第一个数据表中的一行时导航到 R 闪亮的另一个数据表选项卡。我在这里看到类似的例子。但是,我无法使用它们,因为我将数据从数据库直接提取到数据表中。
你能指导我如何完成吗?
output$TbTable <- DT::renderDataTable(datatable(sqlOutput(),style = 'bootstrap', class = 'table-striped table-hover table-condensed',
extensions = c("FixedColumns","Scroller"),
filter = 'top',
options = list(
# dom = 't',
# deferRender = TRUE,
searching = TRUE,
autoWidth = TRUE,
# scrollCollapse = TRUE,
rownames = FALSE,
scroller = TRUE,
scrollX = TRUE,
scrollY = "500px",
#fixedHeader = TRUE,
class = 'cell-border stripe',
fixedColumns = list(
leftColumns = 3,
heightMatch = 'none', escape = FALSE,
options = list(initComplete = JS( …Run Code Online (Sandbox Code Playgroud)