문제

Is it possible to use sections in Senchas Nestedlist? Currently i am dissecting a native iOS app and i wonder if the standard UITableView behavior is reproducable using Sencha/Html5/JS.

Example
(source: icodeblog.com)

The example screenshot above shows 3 sections: D, I, O

thanks

도움이 되었습니까?

해결책

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/

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top