jimhester / knitrBootstrap

A framework to create bootstrap styled HTML reports from knitr Rmarkdown.
Other
274 stars 61 forks source link

Add tooltips to label chunks #185

Closed humburg closed 8 years ago

humburg commented 8 years ago

I've added tooltips to the buttons used to toggle source (and other) chunks in _simpledocument format. As discussed in #68 these buttons are less noisy but also less informative. The solution suggested by @jimhester was to use tooltips for labelling of the chunks instead. This is a first pass at implementing this.

One question is whether the tooltip should be associated with the button or the surrounding panel. My feeling is that having the tooltip pop up every time the mouse pointer enters one of the chunks might get a bit annoying. On the other hand, the buttons are relatively small and a user unfamiliar with the output produced by knitrBootstrap could go a long time without triggering a tooltip and that mostly defeats the purpose.

jimhester commented 8 years ago

Wow that was way easier than I thought it would be, 2 lines of code!

I think you are correct about it being annoying if the tooltip was on the entire panel, this seems like a good compromise.

jimhester commented 8 years ago

Thanks!