OHDSI / OmopViewer

https://ohdsi.github.io/OmopViewer/
Apache License 2.0
2 stars 0 forks source link

shinyWidgets::pickerInput #188

Closed edward-burn closed 3 weeks ago

edward-burn commented 1 month ago

I find shinyWidgets::pickerInput to work better that shiny::selectizeInput, especially when there are many options. Using code like the below seems to work well for most situations I think

shinyWidgets::pickerInput( inputId = "cohort_code_use_grouping_cdm_name", label = "Cdm name", choices = NULL, selected = NULL, multiple = TRUE, options = list(actions-box = TRUE, size = 10, selected-text-format = "count > 3") )

  shinyWidgets::updatePickerInput(session,
                                  inputId = names(choices)[k],
                                  choices = choices[[k]],
                                  selected = choices[[k]])