onBeforeRedoStack

fires before an action is added into the redo stack

boolean onBeforeRedoStack(array action){ ... };

Parameters

actionarraya user action as an array of command objects

Returns

booleandefines whether the default action of the event will be triggered (true) or canceled (false)

Example

gantt.attachEvent("onBeforeRedoStack", function(action){
    // your code here
    return true;
});

Details

This event is defined in the ext/dhtmlxgantt_undo.js extension, so you need to include it on the page. Read the details in the Undo/Redo Functionality article.

  • The event is blockable, returning false will cancel further processing.
  • If the event is blocked, the redo won't capture actions from event arguments.
  • Event actions can be modified.
See also
Change log

added in version 5.2

Back to top