【问题标题】:Pull to refresh plugin on dataview Ext.js拉动以刷新 dataview Ext.js 上的插件
【发布时间】:2014-08-25 14:25:54
【问题描述】:

是否可以将Ext.js pull to refresh 插件与Ext.DataView 组件集成?

【问题讨论】:

    标签: extjs sencha-touch-2 pull-to-refresh


    【解决方案1】:

    当然,

    Sencha Touch Docs 中甚至还有一个示例。

    http://docs.sencha.com/touch/2.3.1/#!/api/Ext.dataview.DataView-cfg-plugins

    例子:

    Ext.create('Ext.dataview.List', {
        config: {
            plugins: [
                {
                    xclass: 'Ext.plugin.PullRefresh',
                    pullRefreshText: 'Pull to refresh...'
                }
            ],
    
            itemTpl: '<div class="item">{title}</div>',
            store: 'Items'
        }
    });
    

    【讨论】:

    • 我想用Ext.DataView 组件而不是`Ext.dataview.List'
    • 好吧,关于 API,您应该能够将其添加到数据视图中。到目前为止,您尝试了什么?
    猜你喜欢
    • 2016-10-14
    • 2013-03-23
    • 2023-03-25
    • 2013-12-06
    • 2021-06-24
    • 2019-11-12
    • 1970-01-01
    • 2021-04-18
    • 1970-01-01
    相关资源
    最近更新 更多