1 | import * as React from 'react';
|
2 | import { OUIAProps } from '../../helpers';
|
3 | import { ToggleMenuBaseProps } from '../../helpers/Popper/Popper';
|
4 | export declare enum OptionsMenuPosition {
|
5 | right = "right",
|
6 | left = "left"
|
7 | }
|
8 | export declare enum OptionsMenuDirection {
|
9 | up = "up",
|
10 | down = "down"
|
11 | }
|
12 | export interface OptionsMenuProps extends ToggleMenuBaseProps, React.HTMLProps<HTMLDivElement>, OUIAProps {
|
13 | /** Classes applied to root element of the options menu */
|
14 | className?: string;
|
15 | /** Id of the root element of the options menu */
|
16 | id: string;
|
17 | /** Array of OptionsMenuItem and/or OptionMenuGroup nodes that will be rendered in the options menu list */
|
18 | menuItems: React.ReactNode[];
|
19 | /** Either an OptionsMenuToggle or an OptionsMenuToggleWithText to use to toggle the options menu */
|
20 | toggle: React.ReactElement;
|
21 | /** Flag to indicate the toggle has no border or background */
|
22 | isPlain?: boolean;
|
23 | /** Flag to indicate if menu is open */
|
24 | isOpen?: boolean;
|
25 | /** Flag to indicate if toggle is textual toggle */
|
26 | isText?: boolean;
|
27 | /** Flag to indicate if menu is groupped */
|
28 | isGrouped?: boolean;
|
29 | /** Indicates where menu will be aligned horizontally */
|
30 | position?: 'right' | 'left';
|
31 | /** Menu will open up or open down from the options menu toggle */
|
32 | direction?: 'up' | 'down';
|
33 | }
|
34 | export declare const OptionsMenu: React.FunctionComponent<OptionsMenuProps>;
|
35 | //# sourceMappingURL=OptionsMenu.d.ts.map |
\ | No newline at end of file |