alfresco-ng2-components/docs/core/node-delete.directive.md
Andy Stark ba905acf13 [ADF-2463] Moved doc files to subfolders (#3070)
* [ADF-2463] Moved doc files to subfolders

* [ADF-2463] Fixed broken image links

* [ADF-2463] Moved doc files to subfolders

* [ADF-2463] Fixed broken image links
2018-03-13 11:55:33 +00:00

1.0 KiB

Added, Status
Added Status
v2.0.0 Active

Node Delete directive

Deletes multiple files and folders.

Basic Usage

<adf-toolbar>
    <button mat-icon-button
            (delete)="documentList.reload()"
            [adf-delete]="documentList.selection">
    </button>
</adf-toolbar>

<adf-document-list #documentList ...>
 ...
</adf-document-list>

Properties

Name Type Default value Description
selection `MinimalNodeEntity[] DeletedNodeEntity[]`
permanent boolean false If true then the nodes are deleted immediately rather than being put in the trash.

Events

Name Type Description
delete EventEmitter<any> Emitted when the nodes have been deleted.

Details

Note it the file is already in the trashcan so is a DeletedNodeEntity the performing of this action will delete the file premanently

See also