Sencha touch list and taphold event

Posted by | February 13, 2012 | JavaScript, Sencha | No Comments

Sencha touch allows you to create in no time applications for mobile device and all you need ¬†is love ūüėÄ ¬†and… JavaScript. My latest¬†challenge was to show a menu when user was holding the finger ( not¬†necessary¬†the¬†middle¬† one ūüėÄ ¬†) on any list element. It¬†tokes¬†me a while but in the end I have¬†¬†found the magic spell that solved the problem. So to keep it short the code should look something like:

//Create the list
FileList = new Ext.List({
// list setting
// another list setting
// ...
* Listeners binding
listeners : {
el : {
  * Binding tap hold event on list element 
  taphold : function(record, btn, index) {
     //Here you can add the required logic 

About Andrei Tara

Andrei is a developer/geek who loves creating high quality and efficient applications, always following the best practices in software engineering. He loves the challenge of learning new, exciting things and playing with new languages, frameworks, and tools.

Leave a Reply