0

我想从列表中调用列表。我不想使用嵌套列表,因为我的数据量太大了。

如何调用 onItemDisclosure 新列表/卡片/面板?它是如何工作的?

谢谢你。

4

2 回答 2

2

设置一个新面板,其中包含另一个面板Ext.List。将 onItemDisclosure 设置为显示新面板的处理程序,并将商店相应地绑定到新列表。代码看起来像这样:

app.views.TopList = Ext.extend(Ext.List, {
  initComponent: function() {
    // some code
    Ext.apply(this, {
      onItemDisclosure: function () {
        app.views.subList.bindStore(app.stores.storeWithProperData);
        app.views.viewport.setActiveItem(app.views.subList);
      }
    });
  }
});
于 2011-11-24T05:27:31.137 回答
1

将父子列表添加到带有卡片布局的面板中。在父列表的onItemDisclosure函数上,使用setActiveItem方法()加载子列表。

希望它会有所帮助..

于 2011-11-24T07:13:51.463 回答