UNPKG

1.57 kBTypeScriptView Raw
1import * as React from 'react';
2import { IOverflowSet, IOverflowSetProps } from './OverflowSet.types';
3export declare class OverflowSetBase extends React.Component<IOverflowSetProps, {}> implements IOverflowSet {
4 private _focusZone;
5 private _persistedKeytips;
6 private _keytipManager;
7 private _divContainer;
8 private _classNames;
9 constructor(props: IOverflowSetProps);
10 render(): JSX.Element;
11 /**
12 * Sets focus to the first tabbable item in the OverflowSet.
13 * @param forceIntoFirstElement - If true, focus will be forced into the first element,
14 * even if focus is already in theOverflowSet
15 * @returns True if focus could be set to an active element, false if no operation was taken.
16 */
17 focus(forceIntoFirstElement?: boolean): boolean;
18 /**
19 * Sets focus to a specific child element within the OverflowSet.
20 * @param childElement - The child element within the zone to focus.
21 * @returns True if focus could be set to an active element, false if no operation was taken.
22 */
23 focusElement(childElement?: HTMLElement): boolean;
24 componentDidMount(): void;
25 componentWillUnmount(): void;
26 UNSAFE_componentWillUpdate(): void;
27 componentDidUpdate(): void;
28 private _registerPersistedKeytips;
29 private _unregisterPersistedKeytips;
30 private _onRenderItems;
31 private _onRenderOverflowButtonWrapper;
32 /**
33 * Gets the subMenu for an overflow item
34 * Checks if itemSubMenuProvider has been defined, if not defaults to subMenuProps
35 */
36 private _getSubMenuForItem;
37}