Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface INotebookTracker

An object that tracks notebook widgets.

Hierarchy

Index

Properties

Readonly activeCell

activeCell: Cell<ICellModel>

The currently focused cell.

Notes

If there is no cell with the focus, then this value is null.

Readonly activeCellChanged

activeCellChanged: ISignal<INotebookTracker, Cell<ICellModel>>

A signal emitted when the current active cell changes.

Notes

If there is no cell with the focus, then null will be emitted.

Readonly currentChanged

currentChanged: ISignal<INotebookTracker, NotebookPanel>

A signal emitted when the current instance changes.

Notes

If the last instance being tracked is disposed, null will be emitted.

Readonly currentWidget

currentWidget: NotebookPanel

The current widget is the most recently focused or added widget.

Notes

It is the most recently focused widget, or the most recently added widget if no widget has taken focus.

Readonly isDisposed

isDisposed: boolean

Test whether the object has been disposed.

Notes

This property is always safe to access.

Readonly restored

restored: Promise<void>

A promise that is resolved when the widget tracker has been restored from a serialized state.

Notes

Most client code will not need to use this, since they can wait for the whole application to restore. However, if an extension wants to perform actions during the application restoration, but after the restoration of another widget tracker, they can use this promise.

Readonly selectionChanged

selectionChanged: ISignal<INotebookTracker, void>

A signal emitted when the selection state changes.

Readonly size

size: number

The number of instances held by the tracker.

Readonly widgetAdded

widgetAdded: ISignal<INotebookTracker, NotebookPanel>

A signal emitted when a widget is added.

Readonly widgetUpdated

widgetUpdated: ISignal<INotebookTracker, NotebookPanel>

A signal emitted when a widget is updated.

Methods

dispose

  • dispose(): void
  • Dispose of the resources held by the object.

    Notes

    If the object's dispose method is called more than once, all calls made after the first will be a no-op.

    Undefined Behavior

    It is undefined behavior to use any functionality of the object after it has been disposed unless otherwise explicitly noted.

    Returns void

filter

find

forEach

  • Iterate through each instance in the tracker.

    Parameters

    Returns void

has

  • has(obj: Widget): boolean
  • Check if this tracker has the specified instance.

    Parameters

    • obj: Widget

      The object whose existence is being checked.

    Returns boolean

inject

  • Inject an instance into the widget tracker without the tracker handling its restoration lifecycle.

    Parameters

    Returns void

Generated using TypeDoc