Tracker to react to focus changes of all document widgets.

Constructors

Properties

_debug_printer: ((...args) => void)

Type declaration

    • (...args): void
    • Parameters

      • Rest ...args: any[]

      Returns void

_docManager: IDocumentManager

Instance of IDocumentManager passed to the extension.

_editorTracker: IEditorTracker

Instance of IEditorTracker passed to the extension.

_excludeMatcher: Minimatch

Glob pattern matcher to check if a document is excluded.

_nodes: Map<HTMLElement, Widget> = ...

Mapping of widget nodes to widget objects to be used with event handlers

_notebookTracker: INotebookTracker

Instance of INotebookTracker passed to the extension.

_saveOnCellFocusChange: boolean

Save cells of focus change auto save tracker

_shell: IShell

Instance of IShell (app.shell) passed to the extension.

Methods

  • Get all or only untracked document widgets

    Parameters

    • skipTracked: boolean = true

      Whether to skip already tracked widgets or not.

    Returns Widget[]

    Array of document widgets

  • Get Widget depending what triggered the event. This allows filtering of bubbled up focusout events from changing the focussed cell.

    Parameters

    • event: FocusEvent

      Focus event triggered by an editor or child widget

    Returns Widget

    Document Widget or undefined

  • Determine if a widget is a document widget.

    Parameters

    • widget: Widget

      Widget to check if it is a document Widget

    Returns boolean

    True if the widget is a document widget, else false.

  • Save all document widgets.

    Returns void

  • Save Widget if it is a document Widget.

    Parameters

    • widget: Widget

      Widget which will be saved if it is a document widget

    Returns void

  • Add all untracked widgets to the FocusTracker.

    Returns void

  • Remove all document widgets from the FocusTracker.

    Returns void

Generated using TypeDoc