Back to Website
Show / Hide Table of Contents

Class CommandHistory

Package: @aurigma/design-atoms-text

Constructors

(constructor)(size)

Constructs a new instance of the CommandHistory class

Declaration
constructor(size?: number);
Parameters
Type Name Description
number size

Methods

addCommand(command)

Declaration
addCommand(command: ICommand): void;
Parameters
Type Name Description
ICommand command
Returns
Type Description
void

clearHistory()

Declaration
clearHistory(): void;
Returns
Type Description
void

getCommandsCount()

Declaration
getCommandsCount(): number;
Returns
Type Description
number

getLastCommand(index)

Declaration
getLastCommand(index?: number): ICommand;
Parameters
Type Name Description
number index
Returns
Type Description
ICommand
Was this page helpful?
Thanks for your feedback!
In This Article
  • Constructors
    • (constructor)(size)
  • Methods
    • addCommand(command)
    • clearHistory()
    • getCommandsCount()
    • getLastCommand(index)
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