Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Implements

Index

Constructors

constructor

Properties

Private _activeCell

_activeCell: Cell | null = null

Private _activeCellChanged

_activeCellChanged: Signal<this, null | Cell> = new Signal<this, Cell | null>(this)

Private _selectionChanged

_selectionChanged: Signal<this, void> = new Signal<this, void>(this)

namespace

namespace: string

A namespace for all tracked widgets, (e.g., notebook).

Accessors

activeCell

  • get activeCell(): Cell | null

activeCellChanged

  • get activeCellChanged(): ISignal<this, Cell | null>

currentChanged

currentWidget

isDisposed

  • get isDisposed(): boolean

restored

  • get restored(): Promise<void>

selectionChanged

  • get selectionChanged(): ISignal<this, void>

size

  • get size(): number

widgetAdded

widgetUpdated

Methods

Private _onActiveCellChanged

Private _onSelectionChanged

  • _onSelectionChanged(sender: Notebook): void

add

dispose

  • dispose(): void

filter

find

forEach

has

  • has(widget: Widget): boolean

inject

  • Inject a foreign widget into the widget tracker.

    Parameters

    • widget: NotebookPanel

      The widget to inject into the tracker.

      Notes

      Injected widgets will not have their state saved by the tracker.

      The primary use case for widget injection is for a plugin that offers a sub-class of an extant plugin to have its instances share the same commands as the parent plugin (since most relevant commands will use the currentWidget of the parent plugin's widget tracker). In this situation, the sub-class plugin may well have its own widget tracker for layout and state restoration in addition to injecting its widgets into the parent plugin's widget tracker.

    Returns Promise<void>

Protected onCurrentChanged

restore

save

Generated using TypeDoc