katoikia-app/web-ui/web-react/node_modules/primereact/contextmenu/contextmenu.d.ts

25 lines
758 B
TypeScript
Raw Normal View History

2022-07-06 04:15:11 +00:00
import * as React from 'react';
import { MenuItem } from '../menuitem';
import { CSSTransitionProps } from '../csstransition';
type ContextMenuAppendToType = 'self' | HTMLElement | undefined | null;
export interface ContextMenuProps {
id?: string;
model?: MenuItem[];
style?: object;
className?: string;
global?: boolean;
autoZIndex?: boolean;
baseZIndex?: number;
appendTo?: ContextMenuAppendToType;
transitionOptions?: CSSTransitionProps;
onShow?(e: React.SyntheticEvent): void;
onHide?(e: React.SyntheticEvent): void;
}
export declare class ContextMenu extends React.Component<ContextMenuProps, any> {
public show(event: React.SyntheticEvent): void;
public hide(event: React.SyntheticEvent): void;
}