Demo with Tabris Tern plugin
See
https://github.com/angelozerr/tern-tabris
for more infos.
var button = tabris.create("Button", { }); var selectionHandler = function() { this. // here Ctrl+Space shows methods of Widget (animate, etc) console.log("Button selected!"); }; button.on("select", selectionHandler);