Home > @uniformdev/canvas > ComponentParameterEnhancerFunction

ComponentParameterEnhancerFunction type

A function which is called for each component parameter in a component tree, which can manipulate the value of the parameter. Used to enhance layout data with information from other platforms, such as CMS, commerce, indexing, etc.

Return values: TValue - replaces the original parameter value with this value undefined - do not change the original parameter value null - sets the parameter value to null, replacing any existing value (i.e. if its value could not be resolved in an external system)

Signature:

References: EnhancerContext, ComponentParameterEnhancerOptions