Skip to content

TooltipOptions

Defined in: dom/src/layers/popover/types.ts:143

The tooltip option.

TData = unknown

Type of task.data.

readonly optional delay?: number

Defined in: dom/src/layers/popover/types.ts:162

Milliseconds a hovered bar waits before its tooltip opens; 0 for none. Default 150.


readonly optional followCursor?: boolean

Defined in: dom/src/layers/popover/types.ts:150

The tooltip follows the cursor and sits above it, instead of sitting on the bar. Default false.


readonly optional placement?: TooltipPlacement

Defined in: dom/src/layers/popover/types.ts:164

The side of the bar (or the cursor) the tooltip prefers. Default 'top'.


readonly optional render?: (context) => TooltipContent<TaskTooltipContext<TData>> | null

Defined in: dom/src/layers/popover/types.ts:158

The content, called when the tooltip opens and when its inputs change (another task, new previewed values), never on a mere mouse move. null hides it. Default: the task’s name, dates, progress and working days.

TaskTooltipContext<TData>

TooltipContent<TaskTooltipContext<TData>> | null


readonly optional showWhileDragging?: boolean

Defined in: dom/src/layers/popover/types.ts:152

Keep the tooltip while a bar is dragged, showing the previewed values. Default true.


readonly optional trigger?: TooltipTrigger

Defined in: dom/src/layers/popover/types.ts:148

What opens the tooltip. Default 'hover'. 'focus' is planned for when bars are focusable: until then it opens nothing, like 'none'.