set-attributes

Type: Operation

Sets or removes the specified attributes on the specified element.

Imported operation data

  1. contextNodeId

    (Required)

    Type: NodeId

    The node to change the attributes of.

  2. attributes

    (Required)

    Type: Object<string, (string|null)>

    The new attributes of the node. Pass null as a value to remove the attribute.

  3. [disabledWhenUnchanged=false]

    (Required)

    Type: Boolean

    If true, the operation will return disabled and active if it did nothing.