A VDomModel for the NotebookTrust status item.

Hierarchy (view full)

Constructors

Properties

_activeCellTrusted: boolean = false
_notebook: null | Notebook = null
_totalCells: number = 0
_trustedCells: number = 0
stateChanged: Signal<NotebookTrustStatus.Model, void>

A signal emitted when any model state changes.

Accessors

  • get isDisposed(): boolean
  • Test whether the model is disposed.

    Returns boolean

Methods

  • Given a notebook model, figure out how many of the code cells are trusted.

    Parameters

    Returns {
        total: number;
        trusted: number;
    }

    • total: number
    • trusted: number
  • Trigger a change in the renderer.

    Parameters

    • oldState: [number, number, boolean]
    • newState: [number, number, boolean]

    Returns void

  • Dispose the model.

    Returns void