Skip to content

LinkMenuOptions

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

The linkMenu option.

TData = unknown

Type of task.data.

readonly optional onRemove?: (link) => unknown

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

Removes a link when the user chooses the default action or calls context.remove(). createGantt defaults it to the chart’s own removeLink; give your own to confirm, or to remove the link from your data in a controlled setup. A bare renderer (mountRenderer) has no default: without it nothing can be removed from the menu.

LinkRecord

unknown


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

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

The content of the menu a click on a link opens. null shows no menu. Default: a menu with one action, remove, when the link can be removed.

LinkMenuContext<TData>

TooltipContent<LinkMenuContext<TData>> | null