office-ui-fabric-react
Version:
Reusable React components for building experiences for Office 365.
32 lines (31 loc) • 981 B
TypeScript
import * as React from 'react';
import { ILayerProps } from './Layer.types';
export declare type ILayerBaseState = {
hasMounted: boolean;
};
export declare class LayerBase extends React.Component<ILayerProps, ILayerBaseState> {
static defaultProps: ILayerProps;
private _host;
private _layerElement;
private _rootElement;
constructor(props: ILayerProps);
UNSAFE_componentWillMount(): void;
UNSAFE_componentWillUpdate(): void;
componentDidMount(): void;
componentWillUnmount(): void;
componentDidUpdate(): void;
render(): React.ReactNode;
/**
* rootElement wrapper for setting virtual parent as soon as root element ref is available.
*/
private _handleRootElementRef;
/**
* Helper to stop events from bubbling up out of Layer.
*/
private _filterEvent;
private _getClassNames;
private _setVirtualParent;
private _getLayerElement;
private _removeLayerElement;
private _getHost;
}