Thanks all for the reply.
I tried including it for a tabpanel as below in shiny.R. After reloading it, i still see that button is not disabled. Am i missing anything here?
rv <- reactiveValues(table = NULL)
observeEvent(input$goButtona, {
shinyjs::disable("goButtona")
rv$table <- isolate({
withProgress(message = "Pulling the exp", {
updateDateInput(session,"dateb",value = input$datea)
if (input$old_new_ind == TRUE)
{
inc(date1 = input$datea,threshold = input$threshold, date2 = input$datea -1)
}
else
{
inc(date1 = input$datea,threshold = input$threshold, date2 = input$datea -1)
}
})
})
shinyjs::enable("goButtona")
})