[ADF-491] Task Attachment List Component (#1877)

* Create a new component Task Attachment List
Improve the datatable to get the rows to show

* The component name should follow the guide style
Move the Content calls in a different service file
Show the attach file inside the viewer

* Change method name

* Datatable should get the path and show the icon

* Improve attachment component

* Improve datatable documentation

* Remove console.log
This commit is contained in:
Maurizio Vitale
2017-05-18 16:52:39 +02:00
committed by Eugenio Romano
parent 608b3639ea
commit a90423aa21
39 changed files with 4252 additions and 5 deletions

View File

@@ -111,9 +111,25 @@ export class ObjectDataTableAdapter implements DataTableAdapter {
}
}
if (col.type === 'image') {
if (col.key === 'icon') {
let icon = this.getImagePath(row.getValue('icon'));
if (icon) {
return icon;
}
return this.getImagePath('ft_ic_miscellaneous.svg');
}
}
return value;
}
getImagePath(id: string): any {
return require('./../assets/images/' + id);
}
getSorting(): DataSorting {
return this._sorting;
}