UNPKG

1.28 kBTypeScriptView Raw
1import * as React from 'react';
2import { ReactWidget } from '@jupyterlab/apputils';
3/**
4 * An abstract base class for placeholders
5 *
6 * ### Notes
7 * A placeholder is the element that is shown when input/output
8 * is hidden.
9 */
10export declare abstract class Placeholder extends ReactWidget {
11 /**
12 * Construct a new placeholder.
13 */
14 constructor(callback: (e: React.MouseEvent<HTMLDivElement>) => void);
15 /**
16 * Handle the click event.
17 */
18 protected handleClick(e: React.MouseEvent<HTMLDivElement>): void;
19 private _callback;
20}
21/**
22 * The input placeholder class.
23 */
24export declare class InputPlaceholder extends Placeholder {
25 /**
26 * Construct a new input placeholder.
27 */
28 constructor(callback: (e: React.MouseEvent<HTMLDivElement>) => void);
29 /**
30 * Render the input placeholder using the virtual DOM.
31 */
32 protected render(): React.ReactElement<any>[];
33}
34/**
35 * The output placeholder class.
36 */
37export declare class OutputPlaceholder extends Placeholder {
38 /**
39 * Construct a new output placeholder.
40 */
41 constructor(callback: (e: React.MouseEvent<HTMLDivElement>) => void);
42 /**
43 * Render the output placeholder using the virtual DOM.
44 */
45 protected render(): React.ReactElement<any>[];
46}