Hover-info module
mod_hoverinfo.RdA server-side helper that formats hover/tooltip content for
reactable table cells. Wraps the display value in an htmltools
<span> with a title attribute, which browsers render as a native
tooltip on hover.
Usage
mod_hoverinfo(
type = "reactable",
contents = character(0),
display = NULL,
size = NULL,
style = NULL,
...
)Arguments
- type
Back-end to target. Currently only
"reactable".- contents
A character string (or named character vector) used as the tooltip text in the
titleattribute. Named vectors produce"Name: value"pairs joined by" | ".- display
The value to render visibly inside the cell. Passed as the child node of the
<span>. Kept as an explicit parameter so it is never accidentally matched tosizeby positional argument order.- size
CSS font-size for the span wrapper, e.g.
"0.8rem".NULL(default) leaves it unchanged.- style
Inline CSS for the span wrapper, e.g.
"cursor:help".NULL(default) applies none.- ...
Additional HTML attributes passed to the
<span>tag.