我有一个带有动态数据的handsontable,我正在使用带有闪亮提交按钮的sqlSave代码将它上传到MSSQL DB。
但是,我可以找到任何可以禁用操作按钮的功能,比如说 10 秒。我尝试了 shinyjs::disable 和 withProgress, incProgress 的东西,但它们都没有奏效。
谢谢,
dbhandle <- odbcDriverConnect('driver={SQL Server};server=....;database=...;trusted_connection=true')
withProgress(
sqlSave(dbhandle, dat = some data),
tablename = "Budget_Tool",
rownames = F, append = T, verbose = T, fast = F, colnames = F, safer =
T), value = 1,
style = "notification", message = "Submitting, please wait..")
--------------------
actionButton("submit", "Submit", class = "btn-primary",
style="color: #fff; background-color: #337ab7; border-
color: #2e6da4; font-size: 20px;"),