1 | import * as React from 'react';
|
2 | export interface OptionsMenuToggleWithTextProps extends React.HTMLProps<HTMLDivElement> {
|
3 | /** Id of the parent options menu component */
|
4 | parentId?: string;
|
5 | /** Content to be rendered inside the options menu toggle as text or another non-interactive element */
|
6 | toggleText: React.ReactNode;
|
7 | /** classes to be added to the options menu toggle text */
|
8 | toggleTextClassName?: string;
|
9 | /** Content to be rendered inside the options menu toggle button */
|
10 | toggleButtonContents?: React.ReactNode;
|
11 | /** Classes to be added to the options menu toggle button */
|
12 | toggleButtonContentsClassName?: string;
|
13 | /** Callback for when this options menu is toggled */
|
14 | onToggle?: (event: boolean) => void;
|
15 | /** Inner function to indicate open on Enter */
|
16 | onEnter?: (event: React.MouseEvent<HTMLButtonElement> | React.KeyboardEvent<Element>) => void;
|
17 | /** Flag to indicate if menu is open */
|
18 | isOpen?: boolean;
|
19 | /** Flag to indicate if the button is plain */
|
20 | isPlain?: boolean;
|
21 | /** Forces display of the active state of the options menu button */
|
22 | isActive?: boolean;
|
23 | /** Disables the options menu toggle */
|
24 | isDisabled?: boolean;
|
25 | /** @hide Internal parent reference */
|
26 | parentRef?: React.RefObject<HTMLElement>;
|
27 | /** Indicates that the element has a popup context menu or sub-level menu */
|
28 | 'aria-haspopup'?: boolean | 'dialog' | 'menu' | 'listbox' | 'tree' | 'grid';
|
29 | /** Provides an accessible name for the button when an icon is used instead of text */
|
30 | 'aria-label'?: string;
|
31 | /** @hide Display the toggle in text only mode. */
|
32 | isText?: boolean;
|
33 | /** @hide The menu element */
|
34 | getMenuRef?: () => HTMLElement;
|
35 | }
|
36 | export declare const OptionsMenuToggleWithText: React.FunctionComponent<OptionsMenuToggleWithTextProps>;
|
37 | //# sourceMappingURL=OptionsMenuToggleWithText.d.ts.map |
\ | No newline at end of file |