Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SaveHandler

A class that manages the auto saving of a document.

Notes

Implements https://github.com/ipython/ipython/wiki/IPEP-15:-Autosaving-the-IPython-Notebook.

Hierarchy

  • SaveHandler

Implements

  • IDisposable

Index

Constructors

constructor

  • Construct a new save handler.

    Parameters

    Returns SaveHandler

Properties

Private _autosaveTimer

_autosaveTimer: any

Private _context

_context: any

Private _inDialog

_inDialog: any

Private _interval

_interval: any

Private _isActive

_isActive: any

Private _isDisposed

_isDisposed: any

Private _minInterval

_minInterval: any

Private _multiplier

_multiplier: any

Private _save

_save: any

Handle an autosave timeout.

Private _setTimer

_setTimer: any

Set the timer.

Accessors

isActive

  • get isActive(): boolean
  • Get whether the handler is active.

    Returns boolean

isDisposed

  • get isDisposed(): boolean
  • Get whether the save handler is disposed.

    Returns boolean

saveInterval

  • get saveInterval(): number
  • set saveInterval(value: number): void
  • The save interval used by the timer (in seconds).

    Returns number

  • The save interval used by the timer (in seconds).

    Parameters

    • value: number

    Returns void

Methods

dispose

  • dispose(): void
  • Dispose of the resources used by the save handler.

    Returns void

start

  • start(): void
  • Start the autosaver.

    Returns void

stop

  • stop(): void
  • Stop the autosaver.

    Returns void

Generated using TypeDoc