The future of mobile is with cross platform mobile web apps. In this session you'll discover how Widgetbox used Sencha Touch to rebuild their existing HTML5 mobile apps from the ground up. Using real-life product examples, we'll cover all aspects of developing on top of the Sencha framework including using Javascript, styling in CSS3, and taking advantage of performance optimization and workarounds.
9. Architecture
App Base
Navigation Style
Page Types
Pages
Theme
Page Sets
Extras
Tuesday, November 30, 2010
10. Setup
Ext.setup({
phoneIcon: icon,
phoneStartupScreen: startupScreen,
fullscreen: true,
onReady: function() {
...
var viewport = new Ext.TabPanel({
fullscreen: true,
items: pagesArray
});
...
}
});
Tuesday, November 30, 2010
11. List Pages
List/Detail page types
One panel
Two cards: TableView and
DetailView
TableView extends List/DataView
DetailView extends Panel
Tuesday, November 30, 2010
12. List View Page Types
Wbx.feed.FeedListView = Ext.extend(Ext.List, {
itemSelector: 'li.entry', singleSelect: true,
! itemTpl: new Ext.XTemplate(
! ...
! ! <li class="entry">...</li>
! ...
), constructor: function(config) {
config.proxy =
new Wbx.date.FeedProxy({feedUrl:config.feedUrl});
config.store = new Ext.data.Store({
proxy: config.proxy, model: 'FeedEntry'
! ! ! ...
});
feed.FeedListView.superclass.constructor.call(this,
config);
},
! // Other FeedListView specific overrides...
});
Tuesday, November 30, 2010
13. Image Carousel
Display set photos
Swipe between photos
Sencha Carousel Used
PhotosDetail has a Carousel
Tuesday, November 30, 2010