@f/insert-element
v1.0.0
Published
Insert an element at the specified position within a container
Readme
insert-element
Insert an element at the specified position within a container
Installation
$ npm install @f/insert-elementUsage
var insertElement = require('@f/insert-element')
function insertVnode (parent, vnode, pos) {
return insertElement(parent.element, vnode.element, pos)
}API
insertElement(parent, node, pos)
parent- The DOM node you want to insertnodeintonode- The node you want to insert intoparentpos- The numerical index you want to insertnodewithinparent
Returns: The inserted node (node).
License
MIT
