1 | import * as React from 'react';
|
2 | export interface OptionsMenuToggleProps extends React.HTMLProps<HTMLButtonElement> {
|
3 | /** Id of the parent options menu component */
|
4 | parentId?: string;
|
5 | /** Callback for when this options menu is toggled */
|
6 | onToggle?: (isOpen: boolean) => void;
|
7 | /** Flag to indicate if menu is open */
|
8 | isOpen?: boolean;
|
9 | /** Flag to indicate if the button is plain */
|
10 | isPlain?: boolean;
|
11 | isSplitButton?: boolean;
|
12 | /** Forces display of the active state of the options menu */
|
13 | isActive?: boolean;
|
14 | /** Disables the options menu toggle */
|
15 | isDisabled?: boolean;
|
16 | /** hide the toggle caret */
|
17 | hideCaret?: boolean;
|
18 | /** Provides an accessible name for the button when an icon is used instead of text */
|
19 | 'aria-label'?: string;
|
20 | /** @hide Internal function to implement enter click */
|
21 | onEnter?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
22 | /** @hide Internal parent reference */
|
23 | parentRef?: HTMLElement;
|
24 | /** Content to be rendered in the options menu toggle button */
|
25 | toggleTemplate?: React.ReactNode;
|
26 | }
|
27 | export declare const OptionsMenuToggle: React.FunctionComponent<OptionsMenuToggleProps>;
|
28 | //# sourceMappingURL=OptionsMenuToggle.d.ts.map |
\ | No newline at end of file |