Back to Website
Show / Hide Table of Contents

Class UndoRedoHandler

Handler for performing operations with redoing and undoing of actions.

Package: @aurigma/design-atoms-text
Remarks

the TextWhizz is used as a text engine.

Constructors

(constructor)(_tw)

Constructs a new instance of the UndoRedoHandler class

Declaration
constructor(_tw: ITextWhizzHolder);
Parameters
Type Name Description
ITextWhizzHolder _tw

Properties

canRedo

Indicates if the action can be redone.

Declaration
get canRedo(): boolean;
Property Value
Type Description
boolean

Indicates if the action can be redone.

canUndo

Indicates if the action can be undone.

Declaration
get canUndo(): boolean;
Property Value
Type Description
boolean

Indicates if the action can be undone.

Methods

clear()

Declaration
clear(): void;
Returns
Type Description
void

getSelection()

Declaration
getSelection(): ITextRange;
Returns
Type Description
ITextRange

pause()

Declaration
pause(): void;
Returns
Type Description
void

redo()

Redoes an action.

Declaration
redo(): void;
Returns
Type Description
void

resume()

Declaration
resume(): void;
Returns
Type Description
void

undo()

Undoes an action.

Declaration
undo(): void;
Returns
Type Description
void
Was this page helpful?
Thanks for your feedback!
Back to top Copyright © 2001–2024 Aurigma, Inc. All rights reserved.
Loading...
    Thank for your vote
    Your opinion is important to us. To provide details, send feedback.
    Send feedback