Skip to contents

Tool-tip for table headers

Usage

tooltip_extra(content, theme = "light")

Arguments

content

The content to be displayed in the tool-tip

theme

The theme of the tool-tip, either "light", "light-border", "material" or "translucent"

Value

Custom JS tool-tip renderer for reactable

Examples

reactable::colDef(header = tooltip_extra("This is my tool-tip", theme = "material"))
#> $header
#> [1] "function(columnInfo) {\n                 return React.createElement(TooltipExtras,\n                 {column: columnInfo.name, tooltip: 'This is my tool-tip',\n                 theme: 'material'})\n        }"
#> attr(,"class")
#> [1] "JS_EVAL"
#> 
#> attr(,"class")
#> [1] "colDef"