mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
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:
committed by
Mario Romano
parent
418ac90ae9
commit
0f718a56d7
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user