HTML API
move
Moves a specified element to another position relative to another element.
Throws an exception when the application cannot find a match for the element or the pivot element. See HTML live edit for further information.
tilepieces.core.htmlMatch.move(pivotEl,element,position); Parameters
- pivotEl
- A DOM element against which the target element is to be moved
- position
A
DOMStringrepresenting the position relative to the element ; must match one of the following strings:'before': Before the element itself.'prepend': Just inside the element , before its first child.'append': Just inside the element , after its last child.'after': After the element itself.
- element
- The element, already present in the document, to be moved.
Return Value
None.