UndoEngine Class
Provides functionality to an undo/redo engine in the Web Report Designer.
#Declaration
export class UndoEngine extends Disposable
#Properties
#isDirty Property
Provides access to a value that specifies whether a report has been changed.
#Declaration
isDirty: ko.Computed<boolean>
#Property Value
Type | Description |
---|---|
Computed<boolean> | A knockout computed boolean object, whose value is true if the report has been modified, and false otherwise. |
#redoEnabled Property
Provides access to a value that specifies whether the redo action can currently be performed.
#Declaration
redoEnabled: ko.Observable<boolean>
#Property Value
Type | Description |
---|---|
Observable<boolean> | A knockout observable boolean object, whose value is true if the redo action can be performed, and false otherwise. |
#undoEnabled Property
Provides access to a value that specifies whether the undo action can currently be performed.
#Declaration
undoEnabled: ko.Observable<boolean>
#Property Value
Type | Description |
---|---|
Observable<boolean> | A knockout observable boolean object, whose value is true if the undo action can be performed, and false otherwise. |
#Methods
#clearHistory Method
Clears information about edit operations made to a report, so they cannot not be undone.
#Declaration
clearHistory(): void
#getCurrentChangeSet Method
#Declaration
getCurrentChangeSet(): _LatestChangeSet
#Returns
Type |
---|
_Latest |
#redo Method
Reverses the results of the last undo action.
#Declaration
redo(): void
#undo Method
Undoes the last edit action in a report.
#Declaration
undo(
removeNode?: boolean
): void
#Parameters
Name | Type |
---|---|
remove |
boolean |
#undoAll Method
Undoes all changes made to a report.
#Declaration
undoAll(): void