-
Notifications
You must be signed in to change notification settings - Fork 2
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
How to make tippy() tooltip popup bigger? #11
Comments
Not directly I believe, but since it supports HTML one can use any CSS. tippy("<strong>Works with html!</strong>",
tooltip = "<div style='height:100px;'>I'm the tooltip!</div>",
) Alternatively you could create a utility function and a class. tippy_square <- function(text, content, ...){
content <- sprintf("<div class='tp'>%s</div>", content)
tippy(text, content, ...)
}
htmltools::browsable(
htmltools::tagList(
htmltools::tags$style(
".tp{
height:200px;
width:200px;
text-align: center;
}"
),
tippy_square("Hover me", "Tooltip")
)
) |
yesss. Nice, good working solutions! thanks again John :) |
I still run into a problem when there is a lot of text. The black background doesn't seem endless. When you add enought lines in the tooltip, you will see it seems actually a circle. Any ideas about how to make the black background bigger? |
If I understand correctly there is no way to control the height and width of the
tippy()
pop up box. Am I right or did I miss something?Many thanks in advance!
The text was updated successfully, but these errors were encountered: