【问题标题】:How to load more records on scoll end in Sencha Touch Ext.Dataview如何在 Sencha Touch Ext.Dataview 的滚动端加载更多记录
【发布时间】:2014-07-25 20:08:35
【问题描述】:

我有一个 sencha touch Ext.Dataview 组件,它从商店中提取数据。如何在数据视图的滚动端加载更多记录。

我正在使用 cordova 创建一个 HTML5 应用程序。

【问题讨论】:

    标签: javascript html cordova sencha-touch-2


    【解决方案1】:

    这里是根据需要加载更多记录的代码。它只适用于LIST只记得。

    Secnha 加载更多插件Ext.plugin.ListPagingView

    注意:在'Store'中你需要应用config >> pageSize

    pageSize: 30, //任何该死的数字

    {
                xtype: 'panel',
                flex: 1,
                layout: 'fit',
                items: [
                    {
                        xtype:'list',
                        itemId:'asd',
                        disableSelection:true,                                                
                        id:'asd',
                        itemTpl:new Ext.XTemplate(
                            '<div class="maindiv">'+                                
                                '</div>'
                        ),
                        store:'xyz',
                        plugins: [
                            {
                                xclass: 'Ext.plugin.ListPaging',
                                noMoreRecordsText:'No More Products',
                                loadMoreText:'Load More',
                                autoPaging: true
                            }
                        ],
                        itemHeight:60
                    }
                ]
            }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2014-01-14
      • 1970-01-01
      • 2013-12-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多