Interface IOptions<T>

An options object for initializing a cell widget.

interface IOptions<T> {
    contentFactory: Cell.IContentFactory;
    editorConfig?: Record<string, any>;
    editorExtensions?: Extension[];
    inputHistoryScope?: "global" | "session";
    layout?: PanelLayout;
    maxNumberOutputs?: number;
    model: T;
    placeholder?: boolean;
    translator?: ITranslator;

Type Parameters

Hierarchy (view full)


contentFactory: Cell.IContentFactory

The factory object for customizable cell children.

editorConfig?: Record<string, any>

The configuration options for the text editor widget.

editorExtensions?: Extension[]

Editor extensions to be added.

inputHistoryScope?: "global" | "session"

Whether to split stdin line history by kernel session or keep globally accessible.

layout?: PanelLayout

Cell widget layout.

maxNumberOutputs?: number

The maximum number of output items to display in cell output.

model: T

The model used by the cell.

placeholder?: boolean

Whether this cell is a placeholder for future rendering.

translator?: ITranslator

The application language translator.