reg Function

Registers a new parameter to the "nano" constructor. The name of the method represents the name of the parameter to call when creating a new element. Each function should expect 1 argument, which is the value of the parameter passed from the parameters object, with "this" referencing the API wrapper on the node.

Summary

ElementFunction
ReturnsBoolean

Arguments

objObjectObject containing an unlimited number of methods.

Example

nano.reg({ example: function(value) { this.css.backgroundColor = value; } });