[ADF-1547] tooltip fixes and enhancements (#2333)

* tooltip enhancements

* fix unit tests
This commit is contained in:
Denys Vuika
2017-09-13 17:31:00 +01:00
committed by Eugenio Romano
parent eafe884a9d
commit 1fd23cfd40
9 changed files with 127 additions and 17 deletions

View File

@@ -34,9 +34,6 @@ import { DataTableCellComponent } from './datatable-cell.component';
})
export class LocationCellComponent extends DataTableCellComponent implements OnInit {
@Input()
tooltip: string = '';
@Input()
link: any[];
@@ -50,7 +47,10 @@ export class LocationCellComponent extends DataTableCellComponent implements OnI
if (path) {
this.value = path;
this.displayText = path.name.split('/').pop();
this.tooltip = path.name;
if (!this.tooltip) {
this.tooltip = path.name;
}
const parent = path.elements[path.elements.length - 1];
this.link = [ this.column.format, parent.id ];