addelem - dingojs/dingo.js GitHub Wiki
addelem(id,type,args);
id(string)- the id of the element type(string/func)- the type of the element. If a string, it refrences an html tag such as <h1>. If a func name, the type will be determined by the model under the same name.
args(arr)- an associative array of properties and their values to apply to the element The element constructor also returns a function, so you can refrence it like this:
var test=addelem('test','h1',{innerHTML:'Hello World!',style:{color:'red'}});
test.style.color='blue';//changes the color