Who knows is it possible to know which leaf item in NestedList were tapped and use this value in the Store?
May be I can use leafitemtap not only in listeners of NestedList?
Who knows is it possible to know which leaf item in NestedList were tapped
Share
According to this:
http://docs.sencha.com/touch/2-0/#!/api/Ext.dataview.NestedList-event-leafitemtap
the
leafitemtaplistener function gives you the following params:leafitemtap( Ext.dataview.NestedList this, Ext.List list, Number index, Ext.dom.Element target, Ext.data.Record record, Ext.event.Event e, Object eOpts )in which:
thispoints to your current nested listindexis the index of tapped itemtargetis the DOM element of tapped itemrecordis the model object of tapped itemSuppose that your model has an
idfield. Then:record.get('id')will return the id of tapped item. You can use this to look it up later in your Store.