@kanunilabs/datagrid-react / TooltipState
Interface: TooltipState
What the tooltip should say and where it should point.
Properties
anchor
anchor:
object
Viewport rectangle of the element being described.
height
height:
number
left
left:
number
top
top:
number
width
width:
number
content?
optionalcontent?:ReactNode
Rich content from a column's renderTooltip (P-TOOL-01); drawn instead of text.
hold?
optionalhold?: () =>void
The pointer reached the tooltip — keep it open.
Returns
void
id?
optionalid?:string
The tooltip element's id, which the described cell points at with aria-describedby.
interactive?
optionalinteractive?:boolean
tooltip.interactive: the pointer may move onto it (P-TOOL-01).
release?
optionalrelease?: () =>void
The pointer left the tooltip — close it.
Returns
void
text
text:
string