mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
[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:
committed by
Eugenio Romano
parent
608b3639ea
commit
a90423aa21
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user