1 | import { ITranslator } from '@jupyterlab/translation';
|
2 | import { Message } from '@lumino/messaging';
|
3 | import { Widget } from '@lumino/widgets';
|
4 | import { FileBrowserModel } from './model';
|
5 |
|
6 |
|
7 |
|
8 | export declare class BreadCrumbs extends Widget {
|
9 | |
10 |
|
11 |
|
12 |
|
13 |
|
14 | constructor(options: BreadCrumbs.IOptions);
|
15 | /**
|
16 | * Handle the DOM events for the bread crumbs.
|
17 | *
|
18 | * @param event - The DOM event sent to the widget.
|
19 | *
|
20 | * #### Notes
|
21 | * This method implements the DOM `EventListener` interface and is
|
22 | * called in response to events on the panel's DOM node. It should
|
23 | * not be called directly by user code.
|
24 | */
|
25 | handleEvent(event: Event): void;
|
26 | /**
|
27 | * Whether to show the full path in the breadcrumbs
|
28 | */
|
29 | get fullPath(): boolean;
|
30 | set fullPath(value: boolean);
|
31 | /**
|
32 | * A message handler invoked on an `'after-attach'` message.
|
33 | */
|
34 | protected onAfterAttach(msg: Message): void;
|
35 | /**
|
36 | * A message handler invoked on a `'before-detach'` message.
|
37 | */
|
38 | protected onBeforeDetach(msg: Message): void;
|
39 | /**
|
40 | * A handler invoked on an `'update-request'` message.
|
41 | */
|
42 | protected onUpdateRequest(msg: Message): void;
|
43 | /**
|
44 | * Handle the `'click'` event for the widget.
|
45 | */
|
46 | private _evtClick;
|
47 | /**
|
48 | * Handle the `'lm-dragenter'` event for the widget.
|
49 | */
|
50 | private _evtDragEnter;
|
51 | /**
|
52 | * Handle the `'lm-dragleave'` event for the widget.
|
53 | */
|
54 | private _evtDragLeave;
|
55 | /**
|
56 | * Handle the `'lm-dragover'` event for the widget.
|
57 | */
|
58 | private _evtDragOver;
|
59 | /**
|
60 | * Handle the `'lm-drop'` event for the widget.
|
61 | */
|
62 | private _evtDrop;
|
63 | protected translator: ITranslator;
|
64 | private _trans;
|
65 | private _model;
|
66 | private _hasPreferred;
|
67 | private _crumbs;
|
68 | private _crumbSeps;
|
69 | private _fullPath;
|
70 | private _previousState;
|
71 | }
|
72 | /**
|
73 | * The namespace for the `BreadCrumbs` class statics.
|
74 | */
|
75 | export declare namespace BreadCrumbs {
|
76 | |
77 |
|
78 |
|
79 | interface IOptions {
|
80 | |
81 |
|
82 |
|
83 | model: FileBrowserModel;
|
84 | |
85 |
|
86 |
|
87 | translator?: ITranslator;
|
88 | |
89 |
|
90 |
|
91 | fullPath?: boolean;
|
92 | }
|
93 | }
|