Optionaloptions: {OptionalignoreMove?: booleanIf true, the DOM watcher instances will ignore the operation of moving the element (so as to not trigger relevant callbacks).
Optionalposition?: "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
Optionalto?: 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.