1 | /// <reference types="react" />
|
2 | import { AbstractPureComponent2 } from "../../common";
|
3 | import { IPanel } from "./panelProps";
|
4 | export interface IPanelViewProps {
|
5 | /**
|
6 | * Callback invoked when the user presses the back button or a panel invokes
|
7 | * the `closePanel()` injected prop method.
|
8 | */
|
9 | onClose: (removedPanel: IPanel<any>) => void;
|
10 | /**
|
11 | * Callback invoked when a panel invokes the `openPanel(panel)` injected
|
12 | * prop method.
|
13 | */
|
14 | onOpen: (addedPanel: IPanel<any>) => void;
|
15 | /** The panel to be displayed. */
|
16 | panel: IPanel;
|
17 | /** The previous panel in the stack, for rendering the "back" button. */
|
18 | previousPanel?: IPanel;
|
19 | /** Whether to show the header with the "back" button. */
|
20 | showHeader: boolean;
|
21 | }
|
22 | export declare class PanelView extends AbstractPureComponent2<IPanelViewProps> {
|
23 | render(): JSX.Element;
|
24 | private maybeRenderHeader;
|
25 | private maybeRenderBack;
|
26 | private handleClose;
|
27 | }
|