Home > @uniformdev/canvas > ChildEnhancerBuilder > data

ChildEnhancerBuilder.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

<table><thead><tr><th>

Parameter

</th><th>

Type

</th><th>

Description

</th></tr></thead> <tbody><tr><td>

name

</td><td>

string

</td><td>

</td></tr> <tr><td>

enhancer

</td><td>

ComponentEnhancer<any>

</td><td>

</td></tr> </tbody></table> Returns:

this