import { DataType } from 'sync-ql'; import { DataColumn } from './column.type'; export interface DataRow { ''?: string, [key: string]: DataCellType } export type DataCellType = DataType; export type CellFactoryFunctionProps = { value: any, row: DataRow, column: DataColumn, index: number, editting: boolean, modified: boolean, onChange: (value: any) => void, onEditting: (editting: boolean) => void, } export type CellFactoryFunction = (props: CellFactoryFunctionProps) => React.ReactNode; export type CellFactory = { style?: React.CSSProperties, align?: "left" | "center" | "right" | "justify" | "inherit", factory?: CellFactoryFunction };