Skip to content

Instantly share code, notes, and snippets.

@Restuta
Created October 15, 2013 23:05
Show Gist options
  • Save Restuta/7000007 to your computer and use it in GitHub Desktop.
Save Restuta/7000007 to your computer and use it in GitHub Desktop.
Sencha 'Single tap' example
Ext.Loader.setConfig({
enabled : true
});
Ext.application({
name : ('SF' || 'SenchaFiddle'),
launch : function() {
Ext.create('Ext.List', {
fullscreen: true,
itemTpl: '{title}',
data: [
{ title: 'Item 1' },
{ title: 'Item 2' },
{ title: 'Item 3' },
{ title: 'Item 4' }
],
listeners: {
itemsingletap: function () { console.log('singletapped ' + Math.random()); }
}
});
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment