ebailey78 / shinyBS

Twitter Bootstrap Components for Shiny
182 stars 47 forks source link

multiple bsTooltip showing the same content #7

Closed msquatrito closed 9 years ago

msquatrito commented 10 years ago

Hi, I'm having an issue in adding multiple Tooltips in my shiny app. Even if I link them to different inputId in my ui.R, they all show the same content (always the one of the last tooltip). Here is a minimal reproducible example:

library (shiny) library (shinyBS)

runApp( list( ui = fluidPage( selectInput(inputId = "1st", label = "1st choice", choices = c("a", "b", "c")), br(), selectInput(inputId = "2nd", label = "2nd choice", choices = c("d", "e", "f")),

  bsTooltip(id = "1st", "do something", "right", trigger="hover"),
  bsTooltip(id = "2nd", "do something else", "right", trigger="hover")
),

server = function(input, output) {
}

) )

Any advice will be highly appreciated. Thanks in advance. Best, Massimo

ebailey78 commented 10 years ago

I had to do a special exception to get the tooltips and popovers to work with the newer "selectize" inputs. Apparently there is a bug with that code. It will be a few days until I can really work on a solution but for now, if you set selectize = FALSE in your selectInputs, the tooltips should work as expected. Sorry for the inconvenience.

msquatrito commented 10 years ago

I need to use the selectize input in my app, I'll have to postpone the use of your tooltips. Thanks Best, Massimo 

Il Martedì 12 Agosto 2014 13:31, Eric notifications@github.com ha scritto:

I had to do a special exception to get the tooltips and popovers to work with the newer "selectize" inputs. Apparently there is a bug with that code. It will be a few days until I can really work on a solution but for now, if you set selectize = FALSE in your selectInputs, the tooltips should work as expected. Sorry for the inconvenience. — Reply to this email directly or view it on GitHub.