Skip to content

Commit

Permalink
Success
Browse files Browse the repository at this point in the history
  • Loading branch information
bruno-c committed Oct 11, 2011
1 parent 29dd64b commit 3a25218
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 9 deletions.
Binary file modified public/files/sencha-touch/getting-started-with-sencha-touch.key
Binary file not shown.
31 changes: 22 additions & 9 deletions public/src/jsmtl-sencha.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
// JS-MONTREAL.ORG
// Sencha Touch mobile version

//todo
// add "big stuff to slides"
// components, layouts, stores
// show the class hiearchy

(function(){

Expand All @@ -24,7 +20,6 @@ new Ext.Application({




// Models & Stores
// ---------------
// Sencha has a sophisticated model & data store component -
Expand Down Expand Up @@ -130,14 +125,16 @@ var mainView = {
xtype : 'toolbar',
title : 'Previous meetup',
items : [{
itemCls: 'back',
text: 'Back'

id : 'backbutton',
itemCls : 'back',
text : 'Back'

}]
}],
}]
}]

},{

iconCls: 'locate',
title: 'Where',
items: {
Expand All @@ -161,6 +158,7 @@ var mainView = {

jsmtl.on('launch', function(app){


var viewportItems = app.viewport.items,

// The first item in the viewport items collection is the
Expand Down Expand Up @@ -234,6 +232,21 @@ jsmtl.on('launch', function(app){

});

// You can always find a component by Id if you must
// Here, the back button we've defined in the historical
// meetup view


var backbutton = Ext.getCmp('backbutton');

backbutton.on('tap', function(){

list.deselect( list.getSelectedRecords() );
history.setActiveItem(0);

});



});

Expand Down

0 comments on commit 3a25218

Please sign in to comment.