@tbuschto tbuschto released this Aug 3, 2016 · 992 commits to master since this release

Assets 2

ImageData API

The CanvasContext object now supports the methods getImageData, createImageData and putImageData.

Web messaging API on WebView

This new API allows the Tabris.js application to communicate with the HTML document loaded inside a WebView via an HTML5 compatible API. String messages can be exchanged via the postMessage method and message event, which are available on the WebView itself and on the window object inside the WebView.

New property "selectedImage" on Tab widget

You can now give an additional image to be displayed if the tab is currently selected.

New property "focused" on TextInput

This property can be used to bring up the virtual keyboard by setting it to true. The user can then immediately start typing.

New events on Drawer

The Drawer widget now has the events open and close, which are fired after the opening/closing animation of the drawer completes.

Animation with promises

The widget method "animate" now returns a promise that is resolved when the animation completes, and rejected when the animation is aborted.

New lifecycle events

In addition to pause and resume there are now three new events on the tabris.app object to react to changes in the app running state: foreground, background and terminate.

Crypto object

The W3C conform global object crypto has been added. It can be used to generate cryptographically secure random numbers.

Full access to http headers via XMLHttpRequest

In a strictly W3C/browser conform implementation of XMLHttpRequest it is not allowed to access certain headers. Tabris.js no longer implements these restrictions. All headers can now be set and read, including previously "forbidden" headers like "Cookie".

Updated permission handling on Android

Cordova plugins can now receive permission request callbacks.

The Tabris.js playground

To make it easier for everyone to play with their code, we have now made a public Playground available without signing in. Go to tabrisjs.com/playground and scan the QR code with your device using the Tabris.js Developer App. You will see your code in action right away.
online playground-small