Monday, February 27, 2012

sencha touch nestedlist onclick


On click event for NestedList item is listerners: itemtap

Example:

var nestedList = new Ext.NestedList({
fullscreen: true,
title: 'Malpha Home',
displayField: 'text',
dock: 'top',
listeners: {
itemtap: function(list, index, element, record) {
                        //example of setting tabpanel active tab
Ext.getCmp("tabname").setActiveItem(1);
}
},
store: store
});


No comments: