Relative Content

Tag Archive for cssrshinyselectinput

Shiny selectInput with named option groups and one unnamed option group

I need a dropdown menu that would have certain groups of choices, with the first option being “Use all data”. That choice makes up it’s own option group, and this group doesn’t need a name.
Unfortunately, selectInput() doesn’t allow that. Either all option groups need to be names, or none of them can. I tried to manipulate the tags using htmltools and tagQuery(), but the individual optgroup-header tags cannot be accessed.