cancellable events for DataTable and DocumentList (#1682)

* cancellable events for DataTable and DocumentList

* more typed events and code fixes

* code fixes
This commit is contained in:
Denys Vuika
2017-03-02 14:49:55 +00:00
committed by Mario Romano
parent 418ac90ae9
commit 0f718a56d7
15 changed files with 256 additions and 90 deletions

View File

@@ -16,6 +16,7 @@
*/
import { TemplateRef } from '@angular/core';
import { BaseUIEvent } from 'ng2-alfresco-core';
export interface DataTableAdapter {
selectedRow: DataRow;
@@ -53,7 +54,12 @@ export class DataSorting {
}
}
export interface DataRowEvent {
value?: DataRow;
event?: Event;
export class DataRowEvent extends BaseUIEvent<DataRow> {
constructor(value: DataRow, domEvent: Event) {
super();
this.value = value;
this.event = domEvent;
}
}