Sencha Touch 2

Sencha Touch 2 is a widget library for creating web apps for mobile devices. It contains widgets (also known as components) that enable you to create web apps for mobile devices with the look and feel of native mobile apps. It is based entirely on web standards such as HTML5, JavaScript, and CSS3.

Benefits of using Sencha Touch 2

You can use the widgets in Sencha Touch 2 to make your apps robust and user-friendly. Some of the widgets available in Sencha Touch 2 include:
  • Tab panels
  • Nested lists
  • Navigation views
  • Form controls
  • Carousels
  • Cards
Sencha Touch 2 also has the following features:
  • Data management: Sencha Touch 2 translates JSON objects to Model objects automatically. This enables you to feed in different types of data sources or destinations. You have the option to use JSON, JSONP, AMF, and SOAP out-of-the-box.
  • Offline capabilities: APIs are available to provide offline data storage functionality that is based on HTML5 local storage and session storage mechanisms.
  • AJAX support: Full AJAX support, including CORS and JASON-P.
  • DOM support: Support for manipulating HTML and XML using the DOM-related methods.
  • Feature detection: Automatic detection of features such as geolocation, canvas, and orientation.
  • Touch events: Support for a full range of touch events and gestures such as tap, swipe, and pinch.

Further reading

Support for Sencha Touch on the BlackBerry Application Platform

Sencha Touch 2.1 is supported on devices that run the BlackBerry 10 OS . The 2.1 version addresses some of the performance-related issues that might have affected BlackBerry apps that were built using the 2.0 version and had complex nested layouts.

The performance improvements in Sencha Touch 2.1 result from changes to the DOM structure and additional CSS rules to help the browser render complex layouts better, without making any changes to the APIs. If you built your app using Sencha Touch 2.0 and used custom CSS, consider reviewing those CSS selectors if you are updating your app to Sencha Touch 2.1.

Applying the BlackBerry theme

Sencha Touch can detect a mobile device platform automatically and loads the appropriate theme. Sencha Touch 2.1 contains a predefined theme for the BlackBerry 10 OS, so it lets you automatically apply a look and feel to your apps that is native to the BlackBerry 10 OS, in addition to applying your own styles. You can download the beta theme for BlackBerry 10 from the following webpage:

Packaging, testing, and debugging your BlackBerry 10 app

You must package your app for the BlackBerry 10 OS before you can deploy your app on a BlackBerry simulator or a device. You can package, test, and debug your app using the BlackBerry 10 WebWorks SDK.

Further reading:

Last modified: 2014-10-09

Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus