Demo with Tabris Tern plugin
See
https://github.com/angelozerr/tern-tabris
for more infos.
tabris. // Ctrl+Space shows create, app, device, etc. /* Demo with tabis.create */ var undefined = tabris.create("Undefined", { }); undefined. // here Ctrl+space shows nothing var button = tabris.create("Button", { }); button. // here Ctrl+space shows Button properties/methods /* Demo with widget.get */ var text = button.get('text'); text. // here Ctrl+Space shows methods of string (charAt, slice, etc.) var bounds = button.get('bounds'); bounds. // here Ctrl+Space shows methods of Bounds (left, top, etc.) bounds.left. // here Ctrl+Space shows methods of Number /* Demo with widget.set */ button.set('text', '...'). // set method is chainable, here Ctrl+Space shows methods of Button /* Demo with widget.children() */ var children = button.children(); children. // here Ctrl+Space shows WidgetCollection methods like filter, first, etc. children.forEach(function(elt) { elt. // here Ctrl+Space shows Widget methods (animate, appendTo, etc.) });