我想要做的是在 ajax 填充列表的底部有一个“加载更多”按钮。我已经让所有代码都使用停靠按钮,但我现在想把它放在底部。
发生的事情是listView
显示卡片时,我看到了我的列表,但列表不会滚动。它会上下拉动一点,但不会有。我尝试添加不同的配置和布局listView
,没有什么不同。
我所做的是以下
var moreButton = new Ext.Button({
text: 'Load more...',
ui: 'round',
handler: function() {//Do the loading - this works}
});
//In my list config I have a docked top bar for going "back" other than that pretty standard
var list = new Ext.List(Ext.apply(listConfig, {
fullscreen: false
}));
//This is my view for what I am trying to do
var listView = new Ext.Container({
items:[list, moreButton]
});
listView
然后将其添加到另一个容器,因为它是从搜索框中填充的,setCard
当我从服务器获得有效响应时会显示。