__ReplaceElements
Replaces a list of Element nodes with a specified list of nodes.
Key | Description |
---|---|
parent | The parent node whose child nodes will be batch-replaced. |
newChildren | The list of new nodes that will replace the old nodes. |
oldChildren | The list of original nodes that are being replaced. |
No return value.
The frontend framework can perform the replacement operation as follows.