@jupyterlab/fileeditor
Version:
JupyterLab - Editor Widget
55 lines (54 loc) • 1.45 kB
TypeScript
import { ITranslator } from '@jupyterlab/translation';
import { VDomModel, VDomRenderer } from '@jupyterlab/ui-components';
import { Menu } from '@lumino/widgets';
/**
* A VDomRenderer for a tabs vs. spaces status item.
*/
export declare class TabSpaceStatus extends VDomRenderer<TabSpaceStatus.Model> {
/**
* Create a new tab/space status item.
*/
constructor(options: TabSpaceStatus.IOptions);
/**
* Render the TabSpace status item.
*/
render(): JSX.Element | null;
/**
* Handle a click on the status item.
*/
private _handleClick;
private _menuClosed;
protected translator: ITranslator;
private _menu;
private _popup;
}
/**
* A namespace for TabSpace statics.
*/
export declare namespace TabSpaceStatus {
/**
* A VDomModel for the TabSpace status item.
*/
class Model extends VDomModel {
/**
* Code editor indentation unit
*/
get indentUnit(): string | null;
set indentUnit(v: string | null);
private _indentUnit;
}
/**
* Options for creating a TabSpace status item.
*/
interface IOptions {
/**
* A menu to open when clicking on the status item. This should allow
* the user to make a different selection about tabs/spaces.
*/
menu: Menu;
/**
* Language translator.
*/
translator?: ITranslator;
}
}