Tabris.js 0.9.0 is here
Tabris.js is a new framework to develop mobile apps in JavaScript. For a general introduction, check out this post: Native Mobile Apps in JavaScript with Tabris.js.
Version 0.9.0 is now online and the updated Developer App is published in the App Store / Play Store. Exciting new features are in - be sure to try them out yourself! It’s easy, just follow the 3 minute tutorial. What’s new in 0.9.0?
Pull-to-refresh in CollectionView
One of the most commonly used patterns in mobile apps is Pull to Refresh: pull the user interface down to force the app to refresh its current view and update content.
Pull-to-refresh can be enabled by setting the new property refreshEnabled
on CollectionView
. When enabled, the user can trigger a refresh
event by pulling down. A refresh message can be set using refreshMessage
(iOS only).
Take a look at an example script.
Limit number of lines in Label
The property maxLines
on Label
can be used to limit the number of lines to be displayed. This approach is preferable to setting a fixed height, as it prevents text lines being cut off in half.
New type SearchAction
A SearchAction is a specialized Action. When a user clicks it, the platform specific search UI will be displayed.
What can it be used for?
Ordinary search as well as dynamic (“Find as you type”). Dynamic proposals can be displayed using the property proposals
. In addition to the selection
event, they fire a modify
event on typing in the search field, and a submit
event on submitting a search term.
React on page activation and deactivation
The events activate
and deactivate
have been introduced for Page
. They’re fired when a page is about to become the active page (appear
) and when a page is no longer active (disappear
). They can be used to pause certain tasks when a page becomes inactive and resume them when it becomes active again.
What can it be used for?
When you know that a certain page has been opened, you can use this information to track user interactions, update the UI, verify that the user is still logged in… Those are the things which you typically want to keep separate from the application code.
For a full list of 0.9.0 features have a look at our GitHub project release page: https://github.com/eclipsesource/tabris-js/releases/tag/v0.9.0
Happy scripting, and see you at tabrisjs.com!
Follow Tabris.js on Twitter to get all the latest updates.