[AAE-3115] Content node selector - Ability to select multiple files (#5904)

* Ability to select multiple files

* Fix unit test

* Rename event into NodeSelected

* restrict the typo

Co-authored-by: Denys Vuika <denys.vuika@alfresco.com>

Co-authored-by: Denys Vuika <denys.vuika@alfresco.com>
This commit is contained in:
Maurizio Vitale
2020-07-24 10:12:51 +01:00
committed by GitHub
parent 5a820cbecd
commit 1dde6bb1c5
16 changed files with 120 additions and 88 deletions

View File

@@ -304,6 +304,10 @@ export class DocumentListComponent implements OnInit, OnChanges, OnDestroy, Afte
@Output()
error: EventEmitter<any> = new EventEmitter();
/** Emitted when the node selection change */
@Output()
nodeSelected: EventEmitter<NodeEntry[]> = new EventEmitter<NodeEntry[]>();
@ViewChild('dataTable', { static: true })
dataTable: DataTableComponent;
@@ -761,6 +765,7 @@ export class DocumentListComponent implements OnInit, OnChanges, OnDestroy, Afte
},
bubbles: true
});
this.nodeSelected.emit(this.selection);
this.elementRef.nativeElement.dispatchEvent(domEvent);
}
@@ -773,6 +778,7 @@ export class DocumentListComponent implements OnInit, OnChanges, OnDestroy, Afte
},
bubbles: true
});
this.nodeSelected.emit(this.selection);
this.elementRef.nativeElement.dispatchEvent(domEvent);
}