Skip to content

Commit

Permalink
chore(data-table): td-data-table missing (rowClick) at "Code" tab
Browse files Browse the repository at this point in the history
chore(data-table): td-data-table missing (rowClick) at "Code" tab
  • Loading branch information
dcarrask authored and emoralesb05 committed Nov 13, 2017
1 parent f62c4ed commit 4cd45db
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ <h3>No results to display.</h3>
[(ngModel)]="selectedRows"
[sortOrder]="sortOrder"
(sortChange)="sort($event)"
(rowClick)="showAlert($event)"
[style.height.px]="200">
</td-data-table>
<div class="md-padding" *ngIf="!dataTable.hasData" layout="row" layout-align="center center">
Expand Down Expand Up @@ -317,6 +318,12 @@ <h3>No results to display.</h3>
this.filter();
}

showAlert(event: any): void {
this._dialogService.openAlert({
message: JSON.stringify('You clicked on row: ' + event.row.name),
});
}

filter(): void {
let newData: any[] = this.data;
let excludedColumns: string[] = this.columns
Expand Down

0 comments on commit 4cd45db

Please sign in to comment.