mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
DataTable docs and backwards compatibility (#1702)
* example: custom datatable row actions * update docs, provide backwards compatibility
This commit is contained in:
committed by
Mario Romano
parent
5e4e8c759c
commit
facd6e0458
@@ -20,6 +20,11 @@ import { DataRow } from '../../data/datatable-adapter';
|
||||
|
||||
export class DataRowActionEvent extends BaseEvent<DataRowActionModel> {
|
||||
|
||||
// backwards compatibility with 1.2.0 and earlier
|
||||
get args(): DataRowActionModel {
|
||||
return this.value;
|
||||
}
|
||||
|
||||
constructor(row: DataRow, action: any) {
|
||||
super();
|
||||
this.value = new DataRowActionModel(row, action);
|
||||
|
Reference in New Issue
Block a user