[ADF-773] Fix datatable custom template render (#1947)

This commit is contained in:
Maurizio Vitale
2017-06-08 18:38:01 +01:00
committed by Eugenio Romano
parent ae683ad708
commit cfb3c9b8ba
3 changed files with 49 additions and 27 deletions

View File

@@ -15,6 +15,7 @@
* limitations under the License.
*/
import { TemplateRef } from '@angular/core';
import { DatePipe } from '@angular/common';
import { ObjectUtils } from 'ng2-alfresco-core';
import { DataTableAdapter, DataRow, DataColumn, DataSorting } from './datatable-adapter';
@@ -221,6 +222,7 @@ export class ObjectDataColumn implements DataColumn {
title: string;
srTitle: string;
cssClass: string;
template?: TemplateRef<any>;
constructor(obj: any) {
this.key = obj.key;
@@ -229,5 +231,6 @@ export class ObjectDataColumn implements DataColumn {
this.title = obj.title;
this.srTitle = obj.srTitle;
this.cssClass = obj.cssClass;
this.template = obj.template;
}
}