是否可以在Senchas Nestedlist中使用部分?目前,我正在解剖本机iOS应用程序,我想知道使用sencha/html5/js可以重现标准的uitableview行为。

Example
(资源: icodeblog.com)

上面的示例屏幕截图显示了3个部分:D,i,o

谢谢

有帮助吗?

解决方案

这是可能的。您需要设置为True这两个列表属性:

 grouped:true,
 indexBar: true,

您列表的商店一定有 getGroupString 为了知道如何对列表项目进行分组。

 getGroupString : function(record) {
      return record.get('firstName')[0];
 },

这是现场示例: http://jsfiddle.net/ssyqf/16/

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top