UNPKG

primereact

Version:

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![npm version](https://badge.fury.io/js/primereact.svg)](https://badge.fury.io/js/primereact) [![Discord Chat](https://img.shields.io/discord/5579

22 lines (19 loc) 549 B
import * as React from 'react'; import {MenuItem} from '../menuitem/MenuItem'; import {SyntheticEvent} from "react"; interface ContextMenuProps { id?: string; model?: MenuItem[]; style?: object; className?: string; global?: boolean; autoZIndex?: boolean; baseZIndex?: number; appendTo?: any; onShow?(e: Event): void; onHide?(e: Event): void; } export class ContextMenu extends React.Component<ContextMenuProps,any> { public show(event:SyntheticEvent):void; public hide(event:SyntheticEvent):void; }