Options
All
  • Public
  • Public/Protected
  • All
Menu

A VDomModel for the NotebookTrust status item.

Hierarchy

  • VDomModel
    • Model

Implements

  • IModel

Index

Properties

Private _activeCellTrusted

_activeCellTrusted: boolean = false

Private _notebook

_notebook: Notebook | null = null

Private _totalCells

_totalCells: number = 0

Private _trustedCells

_trustedCells: number = 0

isDisposed

isDisposed: boolean

Test whether the model is disposed.

stateChanged

stateChanged: Signal<this, void>

A signal emitted when any model state changes.

Accessors

activeCellTrusted

  • get activeCellTrusted(): boolean

notebook

totalCells

  • get totalCells(): number
  • The total number of cells in the current notebook.

    Returns number

trustedCells

  • get trustedCells(): number
  • The number of trusted cells in the current notebook.

    Returns number

Methods

Private _deriveCellTrustState

Private _getAllState

  • _getAllState(): [number, number, boolean]
  • Get the current state of the model.

    Returns [number, number, boolean]

Private _onActiveCellChanged

  • _onActiveCellChanged(model: Notebook, cell: Cell | null): void
  • When the active cell changes, update the trust state.

    Parameters

    Returns void

Private _onModelChanged

  • _onModelChanged(notebook: Notebook): void

Private _triggerChange

  • _triggerChange(oldState: [number, number, boolean], newState: [number, number, boolean]): void
  • Trigger a change in the renderer.

    Parameters

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

    Returns void

dispose

  • dispose(): void
  • Dispose the model.

    Returns void

Generated using TypeDoc