primereact
Version:
PrimeReact is an open source UI library for React featuring a rich set of 80+ components, a theme designer, various theme alternatives such as Material, Bootstrap, Tailwind, premium templates and professional support. In addition, it integrates with Prime
24 lines (20 loc) • 869 B
TypeScript
import * as React from 'react';
import { MenuItem } from '../menuitem';
import { CSSTransitionProps } from '../csstransition';
type ContextMenuAppendToType = 'self' | HTMLElement | undefined | null;
export interface ContextMenuProps extends Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, 'ref'> {
model?: MenuItem[];
global?: boolean;
autoZIndex?: boolean;
baseZIndex?: number;
appendTo?: ContextMenuAppendToType;
transitionOptions?: CSSTransitionProps;
onShow?(e: React.SyntheticEvent): void;
onHide?(e: React.SyntheticEvent): void;
children?: React.ReactNode;
}
export declare class ContextMenu extends React.Component<ContextMenuProps, any> {
public show(event: React.SyntheticEvent): void;
public hide(event: React.SyntheticEvent): void;
public getElement(): HTMLDivElement;
}