TooltipConfig
Since v1.28.0
Configuration for the Tooltip plugin.
Example
Section titled “Example”// Enable both header and cell tooltips (default)new TooltipPlugin()
// Header tooltips onlynew TooltipPlugin({ cell: false })
// Disable all tooltips temporarilynew TooltipPlugin({ header: false, cell: false })Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
header? | boolean | Enable automatic header tooltips when text overflows. Individual columns can override with headerTooltip. |
cell? | boolean | Enable automatic cell tooltips when text overflows. Individual columns can override with cellTooltip. |
focus? | boolean | Show the tooltip for the focused cell during keyboard navigation, so truncated content is reachable without a pointer — WCAG 2.2 SC 1.4.13 Content on Hover or Focus. v3.6.0+ |
hideDelay? | number | Grace period in milliseconds before a tooltip hides once the pointer leaves its cell. Gives the pointer time to travel onto the tooltip itself, which SC 1.4.13 requires so its content can be read, magnified, or selected. Set to 0 to hide immediately. v3.6.0+ |
Property Details
Section titled “Property Details”header
Section titled “header”Default: true
Default: true
Show the tooltip for the focused cell during keyboard navigation, so truncated content is reachable without a pointer — WCAG 2.2 SC 1.4.13 Content on Hover or Focus.
Only keyboard navigation triggers this; clicking a cell with a pointer
never does, so mouse users see no change. Set to false to opt out —
note that doing so forfeits the SC 1.4.13 “focus” path.
Default: true
hideDelay
Section titled “hideDelay”Default: 120