Skip to main content

foundation-entity-management.mapdefaultvalues

Home > @genesislcap/foundation-entity-management > mapDefaultValues

mapDefaultValues() function

Map default values for custom actions

Transform default values object by replacing values with special type 'record' with corresponding values from the row data

Signature:

export declare function mapDefaultValues(defaultValues: Record<string, any>, rowData: any): Record<string, any>;

Parameters

Parameter

Type

Description

defaultValues

Record<string, any>

Object containing default values with potential record mappings

rowData

any

The row data containing values to map from

Returns:

Record<string, any>

Mapped object with record values replaced by corresponding row data values