API Reference > ui-components > Viewport > ViewportProps > onContextMenu onContextMenu MethodOptional onContextMenu(e: MouseEvent<Element, MouseEvent>): boolean Parameter Type Description e MouseEvent<Element, MouseEvent> Returns - boolean Defined in ui/components/src/ui-components/viewport/ViewportComponent.tsx Line 45 Last Updated: 12 June, 2024