mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
Selection state for dynamic table rows
- visual indication of the selected row - toggling selection of the row
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user