UNPKG

@blueprintjs/core

Version:
25 lines (24 loc) 810 B
/// <reference types="react" /> import * as React from "react"; import { IPanel } from "./panelProps"; export interface IPanelViewProps { /** * Callback invoked when the user presses the back button or a panel invokes * the `closePanel()` injected prop method. */ onClose: (removedPanel: IPanel) => void; /** * Callback invoked when a panel invokes the `openPanel(panel)` injected * prop method. */ onOpen: (addedPanel: IPanel) => void; /** The panel to be displayed. */ panel: IPanel; /** The previous panel in the stack, for rendering the "back" button. */ previousPanel?: IPanel; } export declare class PanelView extends React.PureComponent<IPanelViewProps> { render(): JSX.Element; private maybeRenderBack(); private handleClose; }