Guest User

Untitled

a guest
Oct 20th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. # When the other filters change, update this filter to remove rows that
  2. # are filtered out by the other filters' criteria. (We also add in the
  3. # currently selected values for this filter, so that changing other
  4. # filters does not cause this filter's selected values to be unselected;
  5. # while that behavior might make sense logically, it's a poor user
  6. # experience.)
  7. observeEvent(choice_filter(), {
  8. current_values <- input$filter_value
  9.  
  10. updateSelectInput(session, "filter_value",
  11. choices = sort(levels(c(current_values, df()[choice_filter(),col_num,drop=TRUE]))),
  12. selected = current_values
  13. )
  14. })
Add Comment
Please, Sign In to add comment