useContextMenu
ts
Registers a context menu handler that fires when the SDK produces a context menu from an input event.
Parameters
| Parameter | Type | Description |
|---|---|---|
callback | (menu: Menu, event: Event) => void | Receives 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