ASP.NET Core MVC Controls | ComponentOne
In This Topic
    UndoStack Class
    In This Topic
    File
    wijmo.grid.sheet.js
    Module
    wijmo.grid.sheet

    Controls undo and redo operations in the FlexSheet.

    Constructor

    Properties

    Methods

    Events

    Constructor

    constructor

    constructor(owner: FlexSheet): UndoStack
    

    Initializes a new instance of the UndoStack class.

    Parameters
    Returns
    UndoStack

    Properties

    canRedo

    Checks whether a redo action can be performed.

    Type
    boolean

    canUndo

    Checks whether an undo action can be performed.

    Type
    boolean

    stackSize

    Gets or sets the size of the undo stack.

    Type
    number

    Methods

    clear

    clear(): void
    

    Clears the undo stack.

    Returns
    void

    onUndoStackChanged

    onUndoStackChanged(e?: EventArgs): void
    

    Raises the undoStackChanged event.

    Parameters
    Optional
    Returns
    void

    redo

    redo(): void
    

    Redo the last undone action.

    Returns
    void

    undo

    undo(): void
    

    Undo the last action.

    Returns
    void

    Events

    undoStackChanged

    Occurs after the undo stack has changed.

    Arguments
    EventArgs