I'm working on a Shiny app and I would like to know if it's possible or if anyone else has been able to trigger an observeEvent()
by switching between tabPanel()
.
I have had experience in enabling and disabling the tabPanel()
once certain actions are executed thanks to @SriPaladugu code and @DeanAttali shinyjs package but I don't know the extent of these two methods/package when it comes to answering my own question.
I need to trigger an observeEvent()
in order to execute removeNotification()
and remove any warnings windows when switching between tabs.
The way I pictured of doing this was something like:
observeEvent(input$tabSwitch, {
removeNotification(previous.warning.message)
})
However, there is no way to make switching tabs an eventExpr thus making the code above exectuable
If anyone has done this or has knowledge on how to do this, I would greatly appreciate it.