UNPKG

@blueprintjs/table

Version:

Scalable interactive table component

23 lines (22 loc) 949 B
/** * @fileoverview This component is DEPRECATED, and the code is frozen. * Table components should use ContextMenu2 instead. */ import * as React from "react"; import { type Props } from "@blueprintjs/core"; export interface ContextMenuTargetWrapperProps extends Props { children?: React.ReactNode; renderContextMenu: (e: React.MouseEvent<HTMLElement>) => React.JSX.Element | undefined; style: React.CSSProperties; targetRef?: React.RefObject<HTMLDivElement>; } /** * Since the ContextMenuTarget uses the `onContextMenu` prop instead * `element.addEventListener`, the prop can be lost. This wrapper helps us * maintain context menu fuctionality when doing fancy React.cloneElement * chains. */ export declare class ContextMenuTargetWrapper extends React.PureComponent<ContextMenuTargetWrapperProps> { render(): React.JSX.Element; renderContextMenu(e: React.MouseEvent<HTMLElement>): React.JSX.Element | undefined; }