PDA

View Full Version : onListItemTap with Two Lists on different panels (Touch)



sencha2cool
16 Aug 2012, 1:50 PM
Hello,
Have 2 Ext.dataview.List on 2 separate Panels, so when click any item on either list onListItemTap (in Controller) is called.
Currently have code like this:
if (dataview.id == 'ext-list-2') // Information Screen
{ ... }

Would like to know how to create equivalent code that is more maintainable -- perhaps using List config id instead.