jupyterlab-emrys
Version:
A computational environment for Jupyter. Powered by Emrys
75 lines (74 loc) • 2.06 kB
TypeScript
import { Message } from 'phosphor-messaging';
import { Widget } from 'phosphor-widget';
import { FileBrowserModel } from './model';
/**
* A class which hosts folder breadcrumbs.
*/
export declare class BreadCrumbs extends Widget {
/**
* Construct a new file browser crumb widget.
*
* @param model - The file browser view model.
*/
constructor(options: BreadCrumbs.IOptions);
/**
* Handle the DOM events for the bread crumbs.
*
* @param event - The DOM event sent to the widget.
*
* #### Notes
* This method implements the DOM `EventListener` interface and is
* called in response to events on the panel's DOM node. It should
* not be called directly by user code.
*/
handleEvent(event: Event): void;
/**
* A message handler invoked on an `'after-attach'` message.
*/
protected onAfterAttach(msg: Message): void;
/**
* A message handler invoked on a `'before-detach'` message.
*/
protected onBeforeDetach(msg: Message): void;
/**
* A handler invoked on an `'update-request'` message.
*/
protected onUpdateRequest(msg: Message): void;
/**
* Handle the `'click'` event for the widget.
*/
private _evtClick(event);
/**
* Handle the `'p-dragenter'` event for the widget.
*/
private _evtDragEnter(event);
/**
* Handle the `'p-dragleave'` event for the widget.
*/
private _evtDragLeave(event);
/**
* Handle the `'p-dragover'` event for the widget.
*/
private _evtDragOver(event);
/**
* Handle the `'p-drop'` event for the widget.
*/
private _evtDrop(event);
private _model;
private _crumbs;
private _crumbSeps;
}
/**
* The namespace for the `BreadCrumbs` class statics.
*/
export declare namespace BreadCrumbs {
/**
* An options object for initializing a bread crumb widget.
*/
interface IOptions {
/**
* A file browser model instance.
*/
model: FileBrowserModel;
}
}