Interface IGridMergeStrategy

Merge strategy interface.

Implemented by

Properties

Properties

comparer: (prevRecord: any, record: any, field: string) => boolean

Function that compares values for merging. Returns true if same, false if different.

Type declaration

merge: (
    data: any[],
    field: string,
    comparer: (prevRecord: any, currentRecord: any, field: string) => boolean,
    result: any[],
    activeRowIndexes: number[],
    isDate?: boolean,
    isTime?: boolean,
    grid?: GridType,
) => any[]

Function that processes merging of the whole data per merged field. Returns collection where object has reference to the original record and map of the cell merge metadata per field.

Type declaration