Optional
options: {Optional
ignoreMove?: booleanIf true, the DOM watcher instances will ignore the operation of moving the element (so as to not trigger relevant callbacks).
Optional
position?: "after" | "before" | "append" | "prepend"append (default): append to options.to
- prepend: prepend to options.to
- before: insert before options.to
- after: insert after options.to
Optional
to?: ElementThe new parent or sibling (depending on
options.position
). If not given, the
element is removed from the DOM.
Moves an element to a new position.