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
Parameter | Type | Description |
---|---|---|
name | string | |
enhancer | ComponentEnhancer<any> |
Returns:
this