bsplus
bsplus copied to clipboard
collapsible shinyInputs
It could be useful to be able to collapse shiny Inputs - the thought is that we would have a
shinyInput_embed_collapse(tag)
This would take a shinyInput and return a modified copy of the shinyInput.
The modifications would:
-
[x] add a caret to the left side of the label of the shiny input.
-
[x] the caret would be wrapped in a link.
-
[x] the link would be associated with a collapse element that wraps the rest of the shiny input.
-
[ ] the caret would rotate according to if the input is open or not
-
[ ] document
-
[ ] test
-
[ ] article
-
[ ] app
How does this survive a shiny update? (same with label_embed)
consider argument for initial state (expanded/collapsed)
consider left-to-right bias (also for label_embed())