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