Skip to content

0.9.1

Pre-release
Pre-release
Compare
Choose a tag to compare
@tbuschto tbuschto released this 13 Feb 11:24
· 2169 commits to master since this release

Loading tabris.js as a Module

The tabris.js file is now loaded as a regular npm module. This changes the way application declare the Tabris.js version to use. The package.json should now contain a dependency to tabris.js. By calling npm install, the module is installed in the node_modules folder where it can be found by the Tabris.js client.

Assign custom IDs to Widgets

All widgets support a new property id that can be set to a custom string. This property will be copied to the field id. A new method find(), that is available on all widgets, can be used to find widgets by id. This method accepts filter strings of the form #id. The method children() also accepts this kind of filter strings.

Support for widget IDs in layoutData

When layoutData attributes refer to other widgets, a string of the form #id can now be used instead of a widget reference. This reduces the need for keeping widget references in variables.

Widgets renamed

Some widgets have been renamed:

  • Label has been renamed to TextView, which fits in nicely with ImageView
  • Text has been renamed to TextInput
  • Combo has been renamed to Picker

Cordova Integration

The developer console can be activated using the config.xml preferences now. To activate the console the boolean preference EnableDeveloperConsole was introduced. The default value is false.