evt Function

nano > def > evt
Adds or modifies events on the node. Returns the handler.

Summary

ElementFunction
ReturnsObject

Arguments

objObject[required] Object containing events and their corresponding functions.

Example

handler.evt({ click: function() { alert('Text: ' + nano(this).get()); } });