Skip to content

Version 3.6.0

Compare
Choose a tag to compare
@tbuschto tbuschto released this 31 Jul 12:56
· 136 commits to master since this release

API

New Widget "PdfView"

Tabris 3.6 introduces a new widget specifically for displaying PDF documents. The file can be loaded from the local file system or a Blob object. Since this widget uses native rendering, scrolling and zooming the UI is very resonsive.

New method fs.openFile()

This new method allows reading files outside of the app's sandbox via a native file picker UI. The API allows to specificy the the expect file type, and whether multiple files are allowed or not.

ImageBitmap crop & resize

The createImageBitmap function now accepts parameters to crop and/or resize the given image. The source can be a Blob, ImageData, Canvas or another ImageBitmap object.

Redux Support

Tabris now offers dedicated API for redux based application development. Any widget, custom component or functional component can be connected to a global redux store. Redux store state changes can be mapped to widgets properties, and widget events can be mapped to redux actions.

Widget Factories

Widget constructors may now be called without the new keyword, making them function as factories as well. As as factory they not only take properties (like a constructor), but also event listener and children - like in Tabris-JSX. Unlike JSX no compiler is necessary. Custom components can support this syntax by calling the new asFactory function on the component class.

Better Functional Components

In Tabris 3.6 the already existing general prupose property data becomes settable. This provides all widgets with the possibility to store custom state. Using a change event listener or the creatly improved apply method, functional components can now create create widgets that update themselves whenever the data is propy is set to a new value.

Android

Design Update

The look-and-feel of ActivityIndicator, ProgressBar, Slider, Switch widgets as well as the DateDialog has been updated.

Secure Store support

The secureStore was so far only supported on iOS, but is now also available on Android.