Class MoveItemCommand
Inheritance
MoveItemCommand
Constructors
(constructor)(productHandler, historyArgs, args)
Constructs a new instance of the MoveItemCommand class
Declaration
constructor(productHandler: ProductHandler, historyArgs: IHistoryArgs, args: IMoveItemCommandArgs);
Parameters
Methods
_executeCommandBody()
Declaration
_executeCommandBody(): Promise<void>;
Returns
| Type |
Description |
| Promise<void> |
|
moveTo(item, newIndex, needUpdate)
Declaration
moveTo(item: Item, newIndex: number, needUpdate?: boolean): void;
Parameters
| Type |
Name |
Description |
| Item |
item |
|
| number |
newIndex |
|
| boolean |
needUpdate |
|
Returns
redo()
Declaration
Returns
| Type |
Description |
| Promise<void> |
|
undo()
Declaration
Returns
| Type |
Description |
| Promise<void> |
|