小编Chi*_*inB的帖子

R 闪亮数据表链接到另一个选项卡

我试图在单击第一个数据表中的一行时导航到 R 闪亮的另一个数据表选项卡。我在这里看到类似的例子。但是,我无法使用它们,因为我将数据从数据库直接提取到数据表中。

在 Shiny 中从一个数据表到另一个数据表的超链接

你能指导我如何完成吗?

        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)

datatable r hyperlink shiny

5
推荐指数
1
解决办法
2691
查看次数

标签 统计

datatable ×1

hyperlink ×1

r ×1

shiny ×1