-
Notifications
You must be signed in to change notification settings - Fork 52
Tern & Tabris support
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 (see Tern-Eclipse-IDE), open Project Properties, click on Tern / Modules item and select the tabris.js tern plugin (EcmaScript5 tern plugin must be selected too) :
After that you can benefit with tabris.js - native apps in JavaScript completion :
Completion provides methods of tabris
like create
method :
Completion provides Widget and Action type :
Completion provides methods of Widget
like on
method :
The this
of function listener is recognized as tabris widget :
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 :
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:
You can play with online demo which uses CodeMirror (inside Web Browser).
- Tern IDE
- Tern Toolings
-
Tern Modules
- AngularJS
- AlloyUI
- Browser
- Bootstrap
- CKEditor
- CordovaJS
- Dojo Toolkit
- ECMAScript
- ExtJS
- Game
- jQuery
- JSDoc Support
- Liferay
- Meteor
- Node.js
- Qooxdoo
- snabbt.js
- RequireJS
- Tabris.js
- three.js
- Titanium
- YUI Library
- Completion
- Linter (Validator)
- Tests
- JavaScript Build
- New and Noteworthy