Set settings (Beta)
Set settings (Beta)
Set settings (Beta)
element.setSettings(settings)Set one or more settings on an element.
Pass an object with one or more setting keys and their new values.
A value can be a static value, a binding reference to a data source, or null to reset the setting to its default and disconnect any existing binding.
The update is undoable via the Designer’s undo stack.
These methods are in public beta and may change with future releases.
Related types:
settings: Record<string, ResolvedValue | BindingInput | null> — An object mapping setting keys to new values.Use an object with a sourceType field to bind a setting to a data source:
Pass null as the value to disconnect any binding and reset the setting to its default.
To set custom attributes via setSettings, pass an attributes key with an array of AttributeEntry objects.
This replaces all attributes on the element — it does not support partial updates.
Any attributes not included in the array are removed.
Both the name and value of each entry can be a string or a binding reference.
Promise<Record<string, ResolvedValue | BindingInput | null>>
A Promise that resolves to an object with the same shape as the input, reflecting the values that were set.