Coffeekraken.io 0.0.1

prependChild

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

Example

    import prependChild from 'sugarcss/js/dom/prependChild'
prependChild(myElementToInsert, theReferenceElement);

Author : Olivier Bossel olivier.bossel@gmail.com