- add colorview component - improve generic action column - improve generic table - improve event-type-table.component.ts - add headerText to admin layout
14 lines
375 B
TypeScript
14 lines
375 B
TypeScript
import { CellDefinition } from './cell-definition.interface';
|
|
|
|
export interface TypeDefinition{
|
|
type: 'boolean' | 'number' | 'string' | 'date' | 'time' | 'datetime';
|
|
params?: Record<string, any>;
|
|
}
|
|
|
|
export interface ColumnDefinition<T> {
|
|
attribute: keyof T;
|
|
type: TypeDefinition;
|
|
valueCell?: CellDefinition<T> | boolean
|
|
headerCell?: CellDefinition<T> | boolean
|
|
}
|