0.9.0
Pre-releasePull-to-refresh in CollectionView
The pull-to-refresh gesture 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).
More intuitive z-order
For widgets that overlap each other, the z-order is defined by the order in which the widgets are appended to their parent. We've changed the z-order to be more intuitive: new widgets will now be rendered on top of those widgets that have already been appended.
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 to be cut off in half.
Access device language and screen size
device.language
contains the device's language as a RFC4747 compatible string (e.g.de_DE
).device.screen.height
anddevice.screen.width
contain the size of the device's screen in device independent pixel.
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.
New type SearchAction
SearchActions are specialized Actions, that shows a search field on activation. 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.
Listeners to be notified only once
The new method once
allows to add an event listener to a widget that will be notified only once. The listener will be automatically removed once it has been notified.
More new API
- Colors can be reset to the platform's default using the keyword
initial
. Page.open()
now returns the page itself to enable chaining calls.- Experimental: the Page's headers can be configured using the properties
image
,foreground
, andbackground
on thetabris.ui
object.