Tern & Tabris support - angelozerr/tern.java GitHub Wiki
tern-tabris provides the tabris Tern plugin which gives a support for tabris.js - native apps in JavaScript.
After installing and converting your project as Tern Project, go at [Tern project property](Tern-Eclipse-IDE#tern-project-properties, click on Tern / Modules item and select the tabris.js tern plugin (ECMAScript tern plugin must be selected too) :
Completion
After that you can benefit with tabris.js - native apps in JavaScript completion :
tabris#create
Completion provides methods of tabris
like create
method :
Completion provides Widget and Action type :
tabris Widget
Completion provides methods of Widget
like on
method :
this
The this
of function listener is recognized as tabris widget :
properties
Completion provides available properties for get
method :
The widget get method waits a parameter name which returns a value. For instance
get('text')
returns a string :
get('bounds')
returns a bounds object :
Lint
You can validate your tabris code by using the tern plugin lint. After checking the lint plugin, you can see error :
- for invalid argument:
- or unknown property:
Hover
Web Browser
You can play with online demo which uses CodeMirror (inside Web Browser).