UNPKG

office-ui-fabric-react

Version:

Reusable React components for building experiences for Office 365.

40 lines (39 loc) 1.75 kB
/// <reference types="react" /> import { BaseComponent } from '../../Utilities'; import { IOverflowSet, IOverflowSetProps } from './OverflowSet.types'; export declare class OverflowSetBase extends BaseComponent<IOverflowSetProps, {}> implements IOverflowSet { static defaultProps: Pick<IOverflowSetProps, 'vertical' | 'role'>; private _focusZone; private _persistedKeytips; private _keytipManager; private _divContainer; private _classNames; constructor(props: IOverflowSetProps); render(): JSX.Element; /** * Sets focus to the first tabbable item in the OverflowSet. * @param {boolean} forceIntoFirstElement If true, focus will be forced into the first element, * even if focus is already in theOverflowSet * @returns True if focus could be set to an active element, false if no operation was taken. */ focus(forceIntoFirstElement?: boolean): boolean; /** * Sets focus to a specific child element within the OverflowSet. * @param {HTMLElement} childElement The child element within the zone to focus. * @returns True if focus could be set to an active element, false if no operation was taken. */ focusElement(childElement?: HTMLElement): boolean; componentDidMount(): void; componentWillUnmount(): void; componentWillUpdate(): void; componentDidUpdate(): void; private _registerPersistedKeytips(); private _unregisterPersistedKeytips(); private _onRenderItems; private _onRenderOverflowButtonWrapper; /** * Gets the subMenu for an overflow item * Checks if itemSubMenuProvider has been defined, if not defaults to subMenuProps */ private _getSubMenuForItem(item); }