Selection state for dynamic table rows

- visual indication of the selected row
- toggling selection of the row
This commit is contained in:
Denys Vuika
2016-10-17 17:07:34 +01:00
committed by Vito Albano
parent 7a08a9d29d
commit 8542999f0e
6 changed files with 68 additions and 7 deletions

View File

@@ -17,7 +17,7 @@
import { Component, Input, OnInit } from '@angular/core';
import { WidgetComponent } from './../widget.component';
import { DynamicTableModel } from './../core/index';
import { DynamicTableModel, DynamicTableRow } from './../core/index';
@Component({
moduleId: module.id,
@@ -32,4 +32,10 @@ export class DynamicTableWidget extends WidgetComponent implements OnInit {
ngOnInit() {
}
onRowClicked(row: DynamicTableRow) {
if (this.content) {
this.content.selectedRow = row;
}
}
}