An options object for initializing a file browser directory listing.

interface IOptions {
    handleOpenFile?: (path: string) => void;
    model: FilterFileBrowserModel;
    renderer?: DirListing.IRenderer;
    state?: IStateDB<ReadonlyPartialJSONValue>;
    translator?: ITranslator;
}

Properties

handleOpenFile?: (path: string) => void

Callback overriding action performed when user asks to open a file. The default is to open the file in the main area if it is not open already, or to reveal it otherwise.

A file browser model instance.

A renderer for file items.

The default is a shared Renderer instance.

state?: IStateDB<ReadonlyPartialJSONValue>

An optional state database. If provided, the widget will restore the columns sizes

translator?: ITranslator

A language translator.