Today we are proud to release Tabris.js 1.3. This release delivers on recent featurerequests from our users, including custom colors for the Switch button, access to bundled resources and easy manipulation of widget hierarchy with insertBefore() and insertAfter() . Read on forthe highlights.Custom Switch colors
Switch buttons now offer fine-grained control over colors using the following new properties:thumbOnColor thumbOffColor trackOnColor trackOffColor
Access to bundled resources
A new method getResourceLocation() on tabris.app provides absolute locations for resources that are bundled with the app, such as images, videos, etc.Such paths can be required by third partyCordova plugins, e.g. amedia plugin could be used to play a bundled media file:
mediaFilePath = tabris.app.getResourceLocation(media/my.mp3)Insert widgets before/after other widgets
In addition to appendTo() , you can now use the new methods insertBefore() and insertAfter() to insert widgets at a given position. This is particularly useful in conjunction with the "prev()" keyword in layout data.
This method could also be used to re-order widgets within their parent.
Other new features includeiOS9 support (already available with the 1.2.1 maintenance release), and type definitions toassist in developing Tabris.js apps in TypeScript. See thisblog post for details.
For a full list of 1.3 features have a look at our GitHub project release page . If you don’t have the Developer Apps yet, download them now here:
Also, feel freeto leave your feature requestson our GitHub issue tracker . Happy developingwith Tabris.js !
- 2Ubuntu下安装并配置VS Code编译C++
- 3UE4 Run On owing Client解析（RPC测试）
- 4ASP.NET MVC5（五）：身份验证、授权
- 5IntelliJ IDEA：给web应用提供JSTL支持
- 6Node.js Color 模块实现入门浅析
- 8不带插件 ，自己写js，实现批量上传文件及进度显
- 10JS 普通的焦点图