This function inserts a standardized tooltip image, label (optional), and hovertext into the application UI
ui_tooltip(id, label = "", text = "", placement = "top")
html span with the label, tooltip image and tooltip text
Call this function from program/ui_body.R
to set tooltip parameters
library(shiny)
library(periscope2)
# Inside ui_body.R or similar UI file
ui_tooltip(id = "top_tip",
label = "Top Tooltips",
text = "Top tooltip")
#> <span class="periscope-input-label-with-tt">
#> Top Tooltips
#> <img id="top_tip" src="img/tooltip.png" height="16px" width="16px" data-toggle="tooltip" data-placement="top" title="Top tooltip" data-html="true"/>
#> </span>