Sencha Touch - Nestedlist con iOS UITableView-come le sezioni?
-
25-10-2019 - |
Domanda
E 'possibile utilizzare le sezioni in Senchas Nestedlist? Attualmente sto sezionare un iOS app nativa e mi chiedo se il comportamento UITableView standard è riproducibile utilizzando Sencha / HTML5 / JS.
(fonte: icodeblog.com )
L'esempio sopra mostra schermata 3 sezioni: D, I, O
grazie
Soluzione
It's possible. You need to set to true this two list properties:
grouped:true,
indexBar: true,
Also your list's store must have getGroupString
in order to know how to group the list items.
getGroupString : function(record) {
return record.get('firstName')[0];
},
Here is live example: http://jsfiddle.net/sSyqF/16/
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow