ebailey78 / shinyBS

Twitter Bootstrap Components for Shiny
182 stars 47 forks source link

multiple triggers for single BSModal #71

Open manalikr opened 8 years ago

manalikr commented 8 years ago

Hi,

can I have more than one triggers (actionButtons) to display a single BSModal popup screen?

Thanks, Manali

NicholasClark commented 6 years ago

This is an extremely late comment, but I was just trying to do the same thing. I solved my issue by using one trigger and adding an observer for the other triggers with a "toggleModal" command inside of it.

My code looks something like this: observeEvent(c(input$caseA_div, input$caseC_time0, input$caseC_div), { toggleModal(session, 'importDialog3', toggle = "open") }, ignoreInit = T)