updateItems
- Less than a minute to read
Updates design elements.
Params
items
- a list of design elements to be updated. This command takes a <string, object> structure. Here,string
is the design element name. Theobject
represents key-value pairs of item properties (so-called itemData). For details, you can refer to the description of ItemsData.
For the complete list of parameters, you can refer to IUpdateItemsCommandDefinition.
Example
{
"name": "design-editor",
"type": "design-editor",
"params": {
"initial": { ... },
"updateItems": {
"items": {
"header": {
"text": "Lorem ipsum dolor sit amet, consectetur adipiscing elit ...",
"font": {
"{{#new BaseTextItem.FontSettings}}": ["ArialMT", 36]
}
}
}
}
}
}