Class DeleteItemsCommand
Inheritance
DeleteItemsCommand
Constructors
(constructor)(productHandler, historyArgs, args, _canvas, viewerConf, _commandManager)
Constructs a new instance of the DeleteItemsCommand class
Declaration
constructor(productHandler: ProductHandler, historyArgs: IHistoryArgs, args: IDeleteItemsCommandArgs, _canvas: Canvas, viewerConf: IViewerConfiguration, _commandManager: CommandManager);
Parameters
Methods
_executeCommandBody()
Declaration
_executeCommandBody(): Promise<void>;
Returns
| Type |
Description |
| Promise<void> |
|
deleteItem(item)
Declaration
deleteItem(item: Item): void;
Parameters
| Type |
Name |
Description |
| Item |
item |
|
Returns
deleteItems(items, force, autoUngroup, autoParentGroupDelete)
Declaration
deleteItems(items: Array<Item>, force: boolean, autoUngroup: boolean, autoParentGroupDelete: boolean): void;
Parameters
| Type |
Name |
Description |
| Array<Item> |
items |
|
| boolean |
force |
|
| boolean |
autoUngroup |
|
| boolean |
autoParentGroupDelete |
|
Returns
redo()
Declaration
Returns
| Type |
Description |
| Promise<void> |
|
undo()
Declaration
Returns
| Type |
Description |
| Promise<void> |
|