bsplus icon indicating copy to clipboard operation
bsplus copied to clipboard

collapsible shinyInputs

Open ijlyttle opened this issue 8 years ago • 3 comments

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

ijlyttle avatar Feb 10 '17 16:02 ijlyttle

How does this survive a shiny update? (same with label_embed)

ijlyttle avatar Feb 10 '17 17:02 ijlyttle

consider argument for initial state (expanded/collapsed)

ijlyttle avatar Feb 10 '17 18:02 ijlyttle

consider left-to-right bias (also for label_embed())

ijlyttle avatar Feb 10 '17 18:02 ijlyttle