Home > @uniformdev/canvas > EnhancerBuilder > data

EnhancerBuilder.data() method

Targets an enhancer to set a specific object key on the component's data property. Note: an exception will be thrown if the same key is registered more than once.

Signature:

Parameters

ParameterTypeDescription
namestring
enhancerComponentEnhancer<any>

Returns:

this