move(element, parent, [after], [options]);
Inserts (moves) the element into its new position in the DOM either after the after
element (if provided) or as the first child within the parent
element and then triggers an animation. A promise is returned that will be resolved during the next digest once the animation has completed.
Parameters
Param | Type | Details |
---|---|---|
element | DOMElement | the element which will be moved into the new DOM position |
parent | DOMElement | the parent element which will append the element as a child (so long as the after element is not present) |
after (optional) | DOMElement | the sibling element after which the element will be appended |
options (optional) | object | an optional collection of options/styles that will be applied to the element |
Returns
Promise |
the animation callback promise |
Please login to continue.