extra DOM events for DataTable (#1723)

* extra DOM events for DataTable

- support for ‘row-click’ DOM event (bubbling)
- support for ‘row-dblclick’ DOM event (bubbling)
- DataRowEvent exposes ‘sender’ property to simplify access to
component from within handlers
- readme and test updates

* fix unit tests
This commit is contained in:
Denys Vuika
2017-03-14 10:17:33 +00:00
committed by Mario Romano
parent 4dc99ae66a
commit f8427e61e1
11 changed files with 114 additions and 20 deletions

View File

@@ -56,10 +56,13 @@ export class DataSorting {
export class DataRowEvent extends BaseUIEvent<DataRow> {
constructor(value: DataRow, domEvent: Event) {
sender: any;
constructor(value: DataRow, domEvent: Event, sender?: any) {
super();
this.value = value;
this.event = domEvent;
this.sender = sender;
}
}