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

标签 html list sencha-touch

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

最佳答案

应该是这样吗?

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

关于html - sencha touch::在列表前添加一些文本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7849186/

相关文章:

javascript - 在 Sencha Touch 笛卡尔图表中显示间隙

jquery-mobile - Sencha touch 与 Dojo Mobile 与 jQuery Mobile?

javascript - ajax 请求后表单输入选项卡损坏

html - 如何添加相当于 unicode 字符的 "alt"属性(在一个范围内)?

html - CSS 媒体查询在手机和桌面(宽度相同)上的工作方式不同

Python:如何自定义排序列表?

javascript - 如何检查String是否包含 "?"标记

javascript - 列表中的列表后加法和减法按钮将不起作用(JavaScript)

Java 时间过期列表/集?

javascript - Ext.util.JSONP.request 始终返回 "Uncaught ReferenceError: callback is not defined"