Function moveElementNow

Moves an element to a new position.

  • Parameters

    • element: Element
    • Optionaloptions: {
          ignoreMove?: boolean;
          position?: "after" | "before" | "append" | "prepend";
          to?: Element;
      }
      • OptionalignoreMove?: boolean

        If 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?: Element

        The new parent or sibling (depending on options.position). If not given, the element is removed from the DOM.

    Returns void