PDA

View Full Version : Change IndexBar DataView List



javi10823
3 May 2012, 8:26 AM
How can I Change the IndexBar DataView List from letters to numbers?

34841

this is my code:

{ xtype: 'list',
grouped : true,
indexBar : true,
id:'listaindex',
listeners: {
itemtap: {
fn: function (list, index, item, evt) {
//console.log('Presiona Grilla');
}
,
element: 'element'
}
}

,
hideOnMaskTap: false,
store:Ext.create('CargaHorarioApp.store.ConsultaStore'),

itemTpl: '<div class="contact">{des} &nbsp;-&nbsp;<strong>{horas_trabajadas}&nbsp;Hs.</strong></div>'
}

thanks in advance.

mitchellsimoens
5 May 2012, 5:47 AM
Create your own IndexBar extension, specify it in the your own list component in the applyIndexBar method. In your IndexBar extension, the biggest thing is the letters config.