SpreadJS Documentation
GC.Spread.Sheets Namespace / Commands type / redo Field
In This Topic
    redo Field
    In This Topic
    Represents the command used to perform a redo of the most recently undone edit or action.
    Syntax
    var value; // Type: redo
    value = GC.Spread.Sheets.Commands.redo;
    var redo : redo;
    Example
    This example uses the undo or redo action.
    $("#button1").click(function () {
                    if(spread.undoManager().canUndo()){
                        spread.undoManager().undo();
                    }
                });
    
                $("#button2").click(function () {
                    if(spread.undoManager().canRedo()){
                        spread.undoManager().redo();
                    }
                });
    See Also

    Reference

    Commands type