UNPKG

office-ui-fabric-react

Version:

Reusable React components for building experiences for Office 365.

46 lines (45 loc) 1.53 kB
import * as React from 'react'; import { BaseComponent } from '../../Utilities'; import { IPanel, IPanelProps } from './Panel.types'; declare enum PanelVisibilityState { closed = 0, animatingOpen = 1, open = 2, animatingClosed = 3 } interface IPanelState { isFooterSticky?: boolean; id?: string; visibility: PanelVisibilityState; } export declare class PanelBase extends BaseComponent<IPanelProps, IPanelState> implements IPanel { static defaultProps: IPanelProps; private _panel; private _classNames; private _scrollableContent; private _animationCallback; static getDerivedStateFromProps(props: IPanelProps, state: IPanelState): IPanelState; constructor(props: IPanelProps); componentDidMount(): void; componentDidUpdate(previousProps: IPanelProps, previousState: IPanelState): void; render(): JSX.Element | null; open(): void; close(): void; dismiss: (ev?: React.SyntheticEvent<HTMLElement, Event> | undefined) => void; /** isActive is true when panel is open or opening. */ readonly isActive: boolean; private _allowScrollOnPanel; private _shouldListenForOuterClick; private _onRenderNavigation; private _onRenderNavigationContent; private _onRenderHeader; private _onRenderBody; private _onRenderFooter; private _updateFooterPosition; private _dismissOnOuterClick; private _animateTo; private _clearExistingAnimationTimer; private _onPanelClick; private _onTransitionComplete; } export {};