-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreact-contextmenu.d.ts
More file actions
41 lines (35 loc) · 889 Bytes
/
react-contextmenu.d.ts
File metadata and controls
41 lines (35 loc) · 889 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
declare module "react-contextmenu" {
import * as React from "react";
interface ContextMenuProps {
id: string,
className?: string,
hideOnLeave?: boolean,
data?: any,
onHide?: {(args: any): void},
onMouseLeave?: {(args: any): void},
onShow?: {(args: any): void},
}
interface ContextMenuTriggerProps {
id: string,
name?: string,
attributes?: any,
collect?: {(args: any): any},
disable?: boolean,
holdToDisplay?: number,
renderTag?: any,
}
interface MenuItemProps {
attributes?: any,
data?: Object,
disabled?: boolean,
preventClose?: boolean,
divider?: boolean,
onClick?: {(...args: any[]): void},
}
module ReactContextmenu {
export const ContextMenu: React.Factory<ContextMenuProps>;
export const ContextMenuTrigger: React.Factory<ContextMenuTriggerProps>;
export const MenuItem: React.Factory<MenuItemProps>;
}
export = ReactContextmenu;
}