Back to Website
Show / Hide Table of Contents

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. The object 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]
                    }
                }
            }
        }
    }
}
Was this page helpful?
Thanks for your feedback!
Back to top Copyright © 2001–2024 Aurigma, Inc. All rights reserved.
Loading...
    Thank for your vote
    Your opinion is important to us. To provide details, send feedback.
    Send feedback