Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tippy_theme function? #3

Closed
mpadge opened this issue Dec 4, 2018 · 3 comments
Closed

tippy_theme function? #3

mpadge opened this issue Dec 4, 2018 · 3 comments

Comments

@mpadge
Copy link

mpadge commented Dec 4, 2018

Great package @JohnCoene! Thanks for immediately beautifying my world! This may already be possible, but I at least couldn't readily see how. Is there some kind of tippy_theme() function to set a bunch of default parameters so subsequent calls within same R session can then be just tippy("text", tooltip = "tip") minus the other distracting guff? Obvious and direct analogy to ggplot2::theme_update(). This functionality - if not currently possible - ought to be pretty easy to incorporate, and would at least for me be quite useful.

@JohnCoene
Copy link
Owner

Thanks!

Good idea, I'll implement that function.

@JohnCoene
Copy link
Owner

JohnCoene commented Jul 6, 2021

At long last, after 2 years+, I've finally pushed a this feature.

I do apologise it took so long.

library(shiny)
library(tippy)

tippy_global_theme("light")

ui <- fluidPage(
  useTippy(),
  p("Another tooltip", id = "tip"),
  tippyThis(
    "tip",
    "This is indeed an tooltip"
  )
)

server <- function(input, output) {}

shinyApp(ui, server)

@mpadge
Copy link
Author

mpadge commented Jul 7, 2021

That's brilliant - nothing like realising you'd completely forgotten about some long-gone request, only for it to be solved and then realise it's still really, really helpful! Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants