1
我想要做的是在ajax填充列表底部有一个“加载更多”按钮。我已经得到了所有的代码与停靠按钮的工作,但我现在想要在底部。使用Sencha Touch阻止列表滚动
发生什么事是当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
表明,当我从服务器得到有效的响应。
你有没有想过一个办法做到这一点?我陷入了同样的问题。 – Emily 2011-01-06 22:20:16