Options
All
  • Public
  • Public/Protected
  • All
Menu

The parameters after tree_updater are the same as the properties on the event corresponding to this class.

Hierarchy

  • Undo
    • InsertNodeAtUndo

Index

Constructors

constructor

Properties

Protected _events

_events: Subject<UndoEvents> = new Subject()

desc

desc: string

events

events: Observable<UndoEvents> = this._events.asObservable()

Private index

index: number

Private node

node: Node | undefined

Private parentPath

parentPath: string

Private treeUpdater

treeUpdater: TreeUpdater

The tree updater to use to perform undo or redo operations.

Methods

performRedo

  • performRedo(): void

performUndo

  • performUndo(): void

redo

  • redo(): void
  • Called when the operation must be redone.

    throws

    {Error} If an undo is attempted when an undo or redo is already in progress.

    Returns void

toString

  • toString(): string

undo

  • undo(): void
  • Called when the operation must be undone.

    throws

    {Error} If an undo is attempted when an undo or redo is already in progress.

    Returns void

Generated using TypeDoc