Home > @uniformdev/canvas-vue > convertComponentToProps

convertComponentToProps() function

Converts a raw Canvas component instance to Vue component props format. This merges each parameter moved to the root object and removes the 'value' node, hugely simplifying rendering code. For example if the raw object has parameters.foo.value, then the final props have props.foo === raw.parameters.foo.value.

Signature:

Parameters

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

Parameter

</th><th>

Type

</th><th>

Description

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

component

</td><td>

ComponentInstance

</td><td>

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

ComponentProps<T>