UNPKG

852 BTypeScriptView Raw
1import * as React from 'react';
2export declare const MenuContext: React.Context<{
3 menuId?: string;
4 parentMenu?: string;
5 onSelect?: (event?: any, itemId?: any) => void;
6 onActionClick?: (event?: any, itemId?: any, actionId?: any) => void;
7 activeItemId?: any;
8 selected?: any | any[];
9 drilldownItemPath?: string[];
10 drilledInMenus?: string[];
11 onDrillIn?: (fromItemId: string, toItemId: string, itemId: string) => void;
12 onDrillOut?: (toItemId: string, itemId: string) => void;
13 onGetMenuHeight?: (menuId: string, height: number) => void;
14 flyoutRef?: React.Ref<HTMLLIElement>;
15 setFlyoutRef?: (ref: React.Ref<HTMLLIElement>) => void;
16 disableHover?: boolean;
17}>;
18export declare const MenuItemContext: React.Context<{
19 itemId?: any;
20 isDisabled?: boolean;
21}>;
22//# sourceMappingURL=MenuContext.d.ts.map
\No newline at end of file