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.
Beta
These methods are in public beta and may change with future releases.
Syntax
Related types:
Parameters
settings: Record<string, ResolvedValue | BindingInput | null> — An object mapping setting keys to new values.
Value types
Binding value shapes
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.
Returns
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.