Hi. I have a linked series of selectInput widgets in my shiny app that work well. I would like to use the selectize option if possible, as it looks more modern. But when I put selectize=TRUE it no longer highlights the default selection and it doesn't react. What do I need to do? Thanks.
Yes, but when I put selectize=TRUE it no longer highlights the default selection and it doesn't react. The choices initially appear greyed out instead of highlighted, I can select items, but input$mychoice doesn't change (it consists of all the choices).
Yes, but as you can see, it no longer highlights the default selection and it doesn't react. The choices initially appear greyed out instead of highlighted, I can select items, but input$mychoice doesn't change (it consists of all the choices). So it is not working.
As you provide in selected all the possible choices from choices, there is no more item to select. Everything is selected by default. That is maybe why you have the impression that it does not react. You can't select anything else.
If you do not provide anything in selected, you'll have a blanck box to select one or more item from (multiple = TRUE means you can select more than one)
Example where I selected Two and there still two choices to make
Ok, the penny dropped. It seems that selectize doesn't work like I thought it should. I thought it was a box of options that you could select and deselect, and the selected ones would be the highlighted ones, and you could toggle them on and off. Instead, to deselect you have to highlight one or more items in the box and then click the physical Delete button on the keyboard! (no idea how to do it on a phone) at which point those items return to the ugly drop-down list.
It seems there is a "remove button" plugin that makes it work a bit more like I thought it should. However you still get the ugly drop down list of unselected choices, which obscures a lot of the screen: