Documentation

@kanunilabs/datagrid-react


@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?

optional content?: ReactNode

Rich content from a column's renderTooltip (P-TOOL-01); drawn instead of text.


hold?

optional hold?: () => void

The pointer reached the tooltip — keep it open.

Returns

void


id?

optional id?: string

The tooltip element's id, which the described cell points at with aria-describedby.


interactive?

optional interactive?: boolean

tooltip.interactive: the pointer may move onto it (P-TOOL-01).


release?

optional release?: () => void

The pointer left the tooltip — close it.

Returns

void


text

text: string