Tracker to react to focus changes of all document widgets.

Constructors

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