Get Resolved Props
element.getResolvedProps()
Get the resolved values for all props on a component instance.
This method returns all props defined on the component in the same order as in the instance props panel on the canvas. Bindings are resolved to their final output values. For example, a prop bound to a locale returns the actual field value rather than the binding reference. Props that have not been overridden return their component default value.
Limitation: this method does not return resolved values for props that are bound to CMS values; it returns the binding reference instead.
To get the binding references instead of the resolved values, use element.getProps().
Syntax
Related interfaces:
Returns
Promise<ResolvedPropValue[]>
A Promise that resolves to an array of resolved prop values in panel display order.
Example
Designer Ability
Checks for authorization only.