Search Docs
__SwapElement
Swaps the positions of two Elements.
__SwapElement(childA: Element, childB: Element) : void;
No return value.
The frontend framework can perform replacement operations as follows.
// main-thread.js let childA = __CreateElement('view', 0, {}); let childB = __CreateElement('view', 0, {}); let parent = __CreateElement('view', 0, {}); __AppendElement(parent, childA); __AppendElement(parent, childB); __SwapElement(childA, childB);