sencha touch ::在列表前添加一些文本

时间:2011-10-21 12:09:37

标签: html list sencha-touch

如何在列表条目之前在列表中添加一些html文本。文本向上滚动列表!

1 个答案:

答案 0 :(得分:4)

应该是这样吗?

http://jsfiddle.net/p5K4q/28/

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();               
    }
});