mcSamuelDataSci / CACommunityBurden

11 stars 11 forks source link

Modal pop-up options #75

Closed jonahgolden closed 4 years ago

jonahgolden commented 4 years ago

One nice thing about the variable 'current', which contains reactiveValues, is it keeps track of both the current "nav tab" and the current "sub tab." So, to get a modal to pop up on a specific sub tab, we just need to check if current$tab == "tab-name" inside an observe function.

Based on that, I put 2 options in Server, lines 104-116 for the modal pop-up. The first option uses observeEvent, which you can see allows you to specify that the event only be executed once -- could be nice for the modal in this case?