1 | import { PanelLayout } from './panellayout';
|
2 | import { Widget } from './widget';
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 | export declare class Panel extends Widget {
|
14 | |
15 |
|
16 |
|
17 |
|
18 |
|
19 | constructor(options?: Panel.IOptions);
|
20 | /**
|
21 | * A read-only array of the widgets in the panel.
|
22 | */
|
23 | readonly widgets: ReadonlyArray<Widget>;
|
24 | /**
|
25 | * Add a widget to the end of the panel.
|
26 | *
|
27 | * @param widget - The widget to add to the panel.
|
28 | *
|
29 | * #### Notes
|
30 | * If the widget is already contained in the panel, it will be moved.
|
31 | */
|
32 | addWidget(widget: Widget): void;
|
33 | /**
|
34 | * Insert a widget at the specified index.
|
35 | *
|
36 | * @param index - The index at which to insert the widget.
|
37 | *
|
38 | * @param widget - The widget to insert into to the panel.
|
39 | *
|
40 | * #### Notes
|
41 | * If the widget is already contained in the panel, it will be moved.
|
42 | */
|
43 | insertWidget(index: number, widget: Widget): void;
|
44 | }
|
45 | /**
|
46 | * The namespace for the `Panel` class statics.
|
47 | */
|
48 | export declare namespace Panel {
|
49 | |
50 |
|
51 |
|
52 | interface IOptions {
|
53 | |
54 |
|
55 |
|
56 |
|
57 |
|
58 | layout?: PanelLayout;
|
59 | }
|
60 | }
|
61 |
|
\ | No newline at end of file |