Prepend an HTMLElement into another HTMLElement
Name | Type | Description | Status | Default |
---|---|---|---|---|
elm | { HTMLElement } | The element to prepend | required | |
refElm | { HTMLElement } | The element in which to prepend the new element | required |
import prependChild from 'coffeekraken-sugar/js/dom/prependChild'
prependChild(myElementToInsert, theReferenceElement);
Author : Olivier Bossel [email protected] https://olivierbossel.com