如何在列表条目之前的列表中添加一些 html 文本。文本已随列表向上滚动!
最佳答案
应该是这样吗?
new Ext.Application({
launch: function() {
var panel = new Ext.Panel({
fullscreen: true,
id:'thePanel',
layout: 'vbox',
scroll:'vertical'
});
var list = new Ext.List({
id :'theList',
itemTpl : '{firstName} {lastName}',
store: store1,
width: '100%',
scroll:false
});
var smallPanel = new Ext.Panel({layout: 'auto',width:'100%',height:50,style:'background-color:darkgreen;color:white',html:"Hello I'm the panel"});
panel.items.add(smallPanel);
panel.items.add(list);
panel.doLayout();
}
});
关于html - sencha touch::在列表前添加一些文本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7849186/