Debian Codegraph @

node/@patternfly/react-core/dist/esm/components/OverflowMenu/OverflowMenu.d.ts

raw
1 import { Component } from 'react';
2 import { PickOptional } from '../../helpers/typeUtils';
3 export interface OverflowMenuProps extends React.HTMLProps<HTMLDivElement> {
4 /** Any elements that can be rendered in the menu */
5 children?: any;
6 /** Additional classes added to the OverflowMenu. */
7 className?: string;
8 /** Indicates breakpoint at which to switch between expanded and collapsed states. The "sm" breakpoint does not apply to vertical overflow menus. */
9 breakpoint: 'sm' | 'md' | 'lg' | 'xl' | '2xl';
10 /** A container reference to base the specified breakpoint on instead of the viewport width. */
11 breakpointReference?: HTMLElement | (() => HTMLElement) | React.RefObject<any>;
12 /** Indicates the overflow menu orientation is vertical and should respond to height changes instead of width. */
13 isVertical?: boolean;
14 }
15 export interface OverflowMenuState extends React.HTMLProps<HTMLDivElement> {
16 isBelowBreakpoint: boolean;
17 breakpointRef: HTMLElement;
18 }
19 declare class OverflowMenu extends Component<OverflowMenuProps, OverflowMenuState> {
20 static displayName: string;
21 static defaultProps: PickOptional<OverflowMenuProps>;
22 constructor(props: OverflowMenuProps);
23 observer: any;
24 getBreakpointRef(): any;
25 componentDidMount(): void;
26 componentDidUpdate(prevProps: Readonly<OverflowMenuProps>, prevState: Readonly<OverflowMenuState>): void;
27 componentWillUnmount(): void;
28 handleResize: () => void;
29 handleResizeWidth: () => void;
30 handleResizeHeight: () => void;
31 handleResizeWithDelay: (...args: any[]) => void;
32 render(): import("react/jsx-runtime").JSX.Element;
33 }
34 export { OverflowMenu };
35 //# sourceMappingURL=OverflowMenu.d.ts.map