es-grid-template
Version:
es-grid-template
12 lines (11 loc) • 624 B
TypeScript
import type { ColumnTable, ExpandableConfig, IFormat } from '../type';
import type { ColumnDef, ExpandedState } from '@tanstack/react-table';
export declare const renderValueCell: <T>(column: ColumnTable<T>, value: any, record: T, rowIndex: number, colIndex: number, format?: IFormat, editAble?: boolean) => any;
export declare function convertToTanStackColumns<T>({ columns, expanded, setExpanded, expandable, format, editAble }: {
columns: ColumnTable<T>[];
expanded: ExpandedState;
setExpanded: any;
expandable?: ExpandableConfig<T>;
format?: IFormat;
editAble?: boolean;
}): ColumnDef<T, any>[];