Description Usage Arguments Value See Also Examples
Add a tooltip to an element that on hover will show extra information
addTooltip
will only use a basic CSS tooltip with a limited amount of functionality, whereas addPopup
is initialised with JS, and can include more functionality
1 2 3 4 5 6 7 8 9 10 11 12 13 |
el |
A UI element that the tooltip will be applied to |
text |
Contents of the tooltip. Can either be a character string or an HTML object |
position |
(Optional) Force the popup to appear in a direction relative to |
variation |
(Optional) Add certain features to the popup
|
inverted |
Should the colours of the popup be inverted? |
title |
(Optional) Add a title to the popup. Only appears when |
offset |
(Optional) A numeric value of the number of pixel to offset the tooltip by |
settings |
Named list of settings to be applied to the popup. Check Fomantic UI website for full list.
For example |
html |
Is |
addTooltip
will return el
with extra attributes added to the top level tag.
addPopup
will return a shiny.tag.list
, first similar to addTooltip
an updated
version of el
. Then a small JS script has been added to enable the popup.
https://fomantic-ui.com/modules/popup.html
1 2 3 4 5 6 7 8 9 10 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.