add generic table

This commit is contained in:
Roland Schneider
2025-11-19 20:29:21 +01:00
parent 8ccb75ee4e
commit 1bfa4dec47
14 changed files with 338 additions and 2 deletions

View File

@@ -0,0 +1,15 @@
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
}