SheetXL - v0.3.20
    Preparing search index...

    Class UndoManager

    A stack of undo/redo actions.

    Index

    Constructors

    • Creates a new undo manager.

      Parameters

      • maxStack: number = 100

      Returns UndoManager

      By default the stack is limited to 100 items to match Excel. This can be changed by setting the maxStack argument.

    Accessors

    • get maxStack(): number

      Returns number

    Methods

    • Clear the stack.

      Parameters

      • notify: boolean = true

      Returns void

    • Returns readonly string[]

    • Returns string

    • Returns string

    • Returns readonly string[]

    • Returns true if there are redo actions on the stack.

      Returns boolean

      These can be either as a result of an undo or a repeatable action.

    • Returns true if there are undo actions on the stack.

      Returns boolean

    • Redo the last redo actions on the stack.

      Parameters

      • count: number = 1

        number of actions to undo, default is 1.

      Returns void

      The redo stack a list of all items that have an undo. Adding another item to the undo stack

    • Sets repeatable action.

      Parameters

      Returns void

      A repeatable action is an action that a user can do multiple times 'usually on various selections'. For example styling a field adding a similar operation to the undo stack is usually expected and has to be done done separately by the caller.

      • Clears the redo stack and does NOT add this operation to the undo stack.
    • Undo the last actions on the stack.

      Parameters

      • count: number = 1

        number of actions to undo, default is 1.

      Returns void