add Function

nano > def > add
Adds a new child node. Can be a HTML node or a parameters object.

Summary

ElementFunction
ReturnsObject

Arguments

objObject[required] HTML node or nano constructor parameters.

Example

handler.add({ tag: 'span', text: 'I was added!' });