LinkMenuOptions
Defined in: dom/src/layers/popover/types.ts:172
The linkMenu option.
Type Parameters
Section titled “Type Parameters”TData = unknown
Type of task.data.
Properties
Section titled “Properties”onRemove?
Section titled “onRemove?”
readonlyoptionalonRemove?: (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.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”unknown
render?
Section titled “render?”
readonlyoptionalrender?: (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.
Parameters
Section titled “Parameters”context
Section titled “context”LinkMenuContext<TData>
Returns
Section titled “Returns”TooltipContent<LinkMenuContext<TData>> | null