小编aru*_*daw的帖子

如何在R Shiny中实现对数据表的内联编辑

我正在运行一个R Shiny网络应用程序.我使用数据表来显示数据.但我想要内联编辑表格的单元格.我无法做到这一点.任何人都可以指导我吗?

这是我的代码

# UI.R

fluidRow(
         column(4,dataTableOutput("numericalBin")),
         column(8,h1("numericalBin_Chart")))
)
Run Code Online (Sandbox Code Playgroud)
# Server.R

output$numericalBin <- renderDataTable({
    mtcars
  },options = list(    
    lengthChange=FALSE,
    searching=FALSE,
    autoWidth=TRUE,
    paging=FALSE
  ))
Run Code Online (Sandbox Code Playgroud)

我想编辑单元格.以下是我想要发挥作用的链接:https:
//editor.datatables.net/examples/inline-editing/simple.html

我需要在选项列表中添加一些东西,但我找不到合适的.

datatable r shiny

16
推荐指数
1
解决办法
9704
查看次数

标签 统计

datatable ×1

r ×1

shiny ×1