ebailey78 / shinyBS

Twitter Bootstrap Components for Shiny
182 stars 47 forks source link

Multiple tooltips within a single box (shinydashboard) #76

Open jcdepth opened 8 years ago

jcdepth commented 8 years ago

I'm using the shinydashboard library to create a dashboard.

It seems that within a single box element with multiple inputs, it's not possible to have two tooltips, or perhaps the second one is just not displaying.

For example:

box(
  sliderInput("slider1", "Slider 1", min = 0.96, max = 0.999, value = 0.985, step = 0.005),

  bsTooltip("slider1", "Example Text 1", placement = "bottom", trigger = "hover",
  options=list(container="body"))

  sliderInput("slider2", "Slider 2", min = 1, max = 48, value = 12, step = 1),

  bsTooltip("slider2", "Example Text 2", placement = "bottom", trigger = "hover",
  options=list(container="body"))
)

The sliders all function perfectly. With the code above, only the tooltip for slider1 would appear. Is this a known issue or limitation of the package?

jcdepth commented 8 years ago

I just tried putting the two sliders into separate boxes, and the issue still persists.

ivokwee commented 4 years ago

Try tipify() instead. I had a similar problem.