首页 > 解决方案 > 在 RShiny pickerInput 中单独取消选择

问题描述

在 RShiny 中,是否有一个选项pickerInput可以单独取消选择值而不是Deselect All?虽然我认为selectizeInputusing中有一个选项options = list(plugins = list('remove_button')),但我似乎无法在pickerInput

标签: shiny

解决方案


如果再次单击选定的一个,它将取消选择。

pickerInput(
   inputId = "Id094",
   label = "Select/deselect all options", 
    choices = LETTERS,
   options = list(
      `actions-box` = TRUE), 
    multiple = TRUE
)

推荐阅读