setData()

Updates data values for the selected component. Only the data fields you include in values are updated. Every other field keeps its current value.

Each key in values must already be declared in the manifest's editorElement.data. A key that isn't declared there doesn't update the component. If you need a new field, add it to the manifest first.

Syntax

Copy

Parameters

NameTypeDescription
valuesobjectData field keys and their new values. Each key must match a key returned by getDataDefinitions().

Returns

Promise<void>

Example

Copy

See also

Last updated: 8 September 2026

Did this help?