1 | import { Widget } from '@lumino/widgets';
|
2 | import { Message } from '@lumino/messaging';
|
3 | import { ITranslator } from '@jupyterlab/translation';
|
4 |
|
5 |
|
6 |
|
7 | export interface IPlaceholderOptions {
|
8 | |
9 |
|
10 |
|
11 | promptClass?: string;
|
12 | |
13 |
|
14 |
|
15 | callback: (e: MouseEvent) => void;
|
16 | |
17 |
|
18 |
|
19 | text?: string;
|
20 | |
21 |
|
22 |
|
23 | translator?: ITranslator;
|
24 | }
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 | export declare class Placeholder extends Widget {
|
33 | |
34 |
|
35 |
|
36 | constructor(options: IPlaceholderOptions);
|
37 | /**
|
38 | * The text displayed in the placeholder.
|
39 | */
|
40 | set text(t: string);
|
41 | get text(): string;
|
42 | protected onAfterAttach(msg: Message): void;
|
43 | protected onBeforeDetach(msg: Message): void;
|
44 | private _callback;
|
45 | private _cell;
|
46 | private _textContent;
|
47 | }
|
48 | /**
|
49 | * The input placeholder class.
|
50 | */
|
51 | export declare class InputPlaceholder extends Placeholder {
|
52 | |
53 |
|
54 |
|
55 | constructor(options: IPlaceholderOptions);
|
56 | }
|
57 | /**
|
58 | * The output placeholder class.
|
59 | */
|
60 | export declare class OutputPlaceholder extends Placeholder {
|
61 | |
62 |
|
63 |
|
64 | constructor(options: IPlaceholderOptions);
|
65 | }
|