1 | import * as React from 'react';
|
2 | import { ReactWidget } from '../widgets';
|
3 | import { ContextMenuRenderer } from '../context-menu-renderer';
|
4 | import { MenuPath } from '../../common/menu';
|
5 | import { HoverService } from '../hover-service';
|
6 | export declare const SidebarTopMenuWidgetFactory: unique symbol;
|
7 | export declare const SidebarBottomMenuWidgetFactory: unique symbol;
|
8 | export interface SidebarMenu {
|
9 | id: string;
|
10 | iconClass: string;
|
11 | title: string;
|
12 | menuPath: MenuPath;
|
13 | order: number;
|
14 | }
|
15 |
|
16 |
|
17 |
|
18 | export declare class SidebarMenuWidget extends ReactWidget {
|
19 | protected readonly menus: SidebarMenu[];
|
20 | |
21 |
|
22 |
|
23 | protected preservedContext: HTMLElement | undefined;
|
24 | |
25 |
|
26 |
|
27 | protected preservingContext: boolean;
|
28 | protected readonly contextMenuRenderer: ContextMenuRenderer;
|
29 | protected readonly hoverService: HoverService;
|
30 | constructor();
|
31 | addMenu(menu: SidebarMenu): void;
|
32 | removeMenu(menuId: string): void;
|
33 | protected readonly onMouseDown: () => void;
|
34 | protected readonly onMouseOut: () => void;
|
35 | protected readonly onMouseEnter: (event: React.MouseEvent<HTMLElement, MouseEvent>, title: string) => void;
|
36 | protected onClick(e: React.MouseEvent<HTMLElement, MouseEvent>, menuPath: MenuPath): void;
|
37 | protected render(): React.ReactNode;
|
38 | }
|
39 | //# sourceMappingURL=sidebar-menu-widget.d.ts.map |
\ | No newline at end of file |