UNPKG

680 BTypeScriptView Raw
1import { Panel } from '@lumino/widgets';
2import { Toolbar } from './toolbar';
3/**
4 * A base class for panel widget with toolbar.
5 */
6export declare class PanelWithToolbar extends Panel implements Toolbar.IWidgetToolbar {
7 constructor(options?: PanelWithToolbar.IOptions);
8 /**
9 * Widget toolbar
10 */
11 get toolbar(): Toolbar;
12 protected _toolbar: Toolbar;
13}
14/**
15 * Namespace for panel with toolbar
16 */
17export declare namespace PanelWithToolbar {
18 /**
19 * An options object for creating a panel with toolbar widget.
20 */
21 interface IOptions extends Panel.IOptions {
22 /**
23 * Custom toolbar
24 */
25 toolbar?: Toolbar;
26 }
27}