DataTable docs and backwards compatibility (#1702)

* example: custom datatable row actions

* update docs, provide backwards compatibility
This commit is contained in:
Denys Vuika
2017-03-10 09:50:02 +00:00
committed by Mario Romano
parent 5e4e8c759c
commit facd6e0458
6 changed files with 65 additions and 44 deletions

View File

@@ -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);