office-ui-fabric-react
Version: 
Reusable React components for building experiences for Office 365.
29 lines (28 loc) • 1.16 kB
TypeScript
import * as React from 'react';
import { Layer } from './Layer';
export interface ILayer {
}
export interface ILayerProps extends React.HTMLAttributes<HTMLDivElement | Layer> {
    /**
     * Optional callback to access the ILayer interface. Use this instead of ref for accessing
     * the public methods and properties of the component.
     */
    componentRef?: (component: ILayer) => void;
    /** Callback for when the layer is mounted. */
    onLayerMounted?: () => void;
    /**
     * Callback for when the layer is mounted.
     */
    onLayerDidMount?: () => void;
    /**
     * Callback for when the layer is unmounted.
     */
    onLayerWillUnmount?: () => void;
    /**
     * The optional id property provided on a LayerHost that this Layer should render within. The LayerHost does
     * not need to be immediately available but once has been rendered, and if missing, we'll avoid trying
     * to render the Layer content until the host is available. If an id is not provided, we will render the Layer
     * content in a fixed position element rendered at the end of the document.
     */
    hostId?: string;
}