This function creates a custom tooltip for a given element in a Shiny application. The implementation is based on the shinyBS package.
buildTooltipOrPopoverOptionsList(title, placement, trigger, options, content)
A list of tooltip options to be used in the Shiny application.
The text for the tooltip's title.
Placement of the tooltip. One of 'top', 'bottom', 'left', or 'right'.
The events that trigger the tooltip. One or more of 'click', 'hover', 'focus', or 'manual'.
A list of additional options for the tooltip.
Optional HTML content for the tooltip.