mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[AAE-7856] Show variables in table
This commit is contained in:
@@ -19,7 +19,7 @@ import { TemplateRef } from '@angular/core';
|
||||
import { DataColumn, DataColumnType } from './data-column.model';
|
||||
|
||||
// Simple implementation of the DataColumn interface.
|
||||
export class ObjectDataColumn implements DataColumn {
|
||||
export class ObjectDataColumn<T = unknown> implements DataColumn<T> {
|
||||
id?: string;
|
||||
key: string;
|
||||
type: DataColumnType;
|
||||
@@ -35,6 +35,7 @@ export class ObjectDataColumn implements DataColumn {
|
||||
header?: TemplateRef<any>;
|
||||
draggable: boolean;
|
||||
isHidden: boolean;
|
||||
customData?: T;
|
||||
|
||||
constructor(input: any) {
|
||||
this.id = input.id ?? '';
|
||||
@@ -52,5 +53,6 @@ export class ObjectDataColumn implements DataColumn {
|
||||
this.header = input.header;
|
||||
this.draggable = input.draggable ?? false;
|
||||
this.isHidden = input.isHidden ?? false;
|
||||
this.customData = input.customData;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user