import { KeyOf } from "@mantlebee/ts-core"; import { ColumnAbstract } from "../../models"; /** * Generic column. Generates a value using a delegate passed to the constructor. */ export declare class CustomColumn extends ColumnAbstract { /** * Delegate used to generate the value. * The row passed as param has the values of the previous columns already processed. */ private readonly getValueDelegate; /** * @param name Name of the column and of the field. * @param getValueDelegate Delegate used to generate the value. The row passed as param has the values of the previous columns already processed. */ constructor(name: KeyOf, getValueDelegate: (row: TRow) => TValue); getValue(row: TRow): TValue; }