View source: R/embed_tooltip.R
bs_embed_tooltip | R Documentation |
A tooltip can be a useful way to add a few words of explanation to a tag.
bs_embed_tooltip(tag, title = "", placement = "top", ...) use_bs_tooltip()
tag |
|
title |
character, title for the tooltip |
placement |
character, placement of the tooltip with respect to |
... |
other named arguments, passed to |
To activate the use of tooltips in your page, you will need to call
the use_bs_tooltip()
function somewhere.
The verb embed is used to signify that you are embedding information
into a tag
. This implies that you can embed, at most, one "thing"
into a particular tag
. You should not, for example, expect to embed both a tooltip
and a popover into a tag
.
htmltools::[tag][htmltools::tag]
, modified copy of tag
bs_embed_popover()
, https://getbootstrap.com/docs/3.3/javascript/#tooltips
library("htmltools") bs_button("I'm a button") %>% bs_embed_tooltip(title = "I'm a tooltip")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.