Get resolved settings (Beta)
Get resolved settings (Beta)
element.getResolvedSettings()
Get the resolved values for all settings on an element.
This method returns the final output value for each setting. Bindings are resolved to their actual values rather than returned as binding references. For example, a setting bound to a component prop returns the current value of that prop rather than a binding reference object.
Limitation: this method does not return resolved values for settings that are bound to CMS fields; it returns the binding reference instead.
To get the binding references instead of the resolved values, use element.getSettings().
Beta
These methods are in public beta and may change with future releases.
Syntax
Returns
Promise<Record<string, ResolvedValue | null>>
A Promise that resolves to an object mapping setting keys to their resolved values.
Related types:
Example
Designer Ability
Checks for authorization only.