import {TemplateRef} from '@angular/core'; export class Data { title: string; fieldValue: string; show: boolean = true; primaryKey?: boolean = false; isActionColumns?: boolean = false; template?: { template: TemplateRef; keymap?: { [value: string]: string; }; }; // order?: number; action?: { name: string; color?: string; order?: number; fontSize?: string; needConfirm?: boolean; click: (data: T) => void; hover?: (data: T) => void | null; }[] = []; }