ImFusion Web SDK

useContextMenu

ts

Registers a context menu handler that fires when the SDK produces a context menu from an input event.

Parameters

ParameterTypeDescription
callback(menu: Menu, event: Event) => voidReceives the Menu and the DOM Event that triggered it

Returns

void

Throws

If called outside of an ImFusionProvider

Throws

If called before the SDK has finished initializing

Example

tsx