Skip to content

1.0.0

Compare
Choose a tag to compare
@ralfstx ralfstx released this 29 Apr 13:00
· 1963 commits to master since this release

Renamed property foreground to textColor

We think that the name textColor reflects the purpose of this property better. This property applies to all widgets that display a text.

Added property itemIndex to CollectionView cell

This property always reflects the index of the data item that is displayed in the cell.

Introduce properties text and message in SearchAction

The text property reflects the current text in the search input field. It also allows to clear the search field. As in the TextInput widget, the message property allows to insert a hint message into the search field.

Removed return value from animate method

We found that chaining animation listeners to the animate method can lead to unexpected behavior. Therefore we decided to remove the return value from the animate method. In future versions, we plan to return a promise object instead.

Replaced Picker text property with selection

Instead of a text property, the Picker widget now provides a property selection that reflects the currently selected string. The index of the selected item is available in the property selectionIndex.

Added resize event

In order to listen on changes of a widget's size, use the new resize event instead of change:bounds.

Changed method to obtain a Canvas Context

Instead of tabris.getContext(canvas, width, height), the CanvasContext is now obtained by the getContext method on the Canvas widget as follows:

ctx = canvas.getContext("2d", widget, height);

The first parameter (contextType) will make it easier for us to provide
HTML5 compatibility without breaking changes.

Global JavaScript objects available

To extend compatibility with libraries and npm modules that rely on them, the global variables global and self are now available. They are aliases for window and represent the global JavaScript scope.

Support for module variables __dirname and __filename

These are local variables are automatically available in every node module.
We provide them to improve node compatibility.

Added target field on DOM events

The field event.target now always contains the event target. This improves compatibility with some Cordova Plug-Ins.

Removed deprecated API

For widgets and events that have been renamed in previous releases, the old names were still supported as aliases. With this release the old names are no longer supported.

Fixed memory leak related to Page handling

Closing multiple pages by opening a different top-level page did not remove the closed pages from memory. Page handling was largely rewritten, fixing this and several minor page issues.