我想提供一个拉列表来刷新功能。 下面是我的代码,我有一个面板,里面,我有一个列表。列表没有显示在Sencha触摸2.2
Ext.define('MyProj.common.view.notes.NotesOverlay', {
extend: 'Ext.form.Panel',
xtype: 'notesOverlay',
config: {
style: 'box-shadow: 10px 10px 5px #888888;border-radius: 20px;',
items: [{
// Toolbar to be displayed on the Notes overlay
xtype: 'toolbar',
ui: 'light',
docked: 'top',
//margin:'0 0 20 0',
// id:'notesbar',
items: []
},
// List that contains the list of notes
{
xtype: 'list',
height: 500,
allowDeselect: true,
action: 'notesList',
itemTpl: '{title}',
data: [{
title: 'Item 1'
}, {
title: 'Item 2'
}, {
title: 'Item 3'
}, {
title: 'Item 4'
}
],
plugins: [{
xclass: 'Ext.plugin.PullRefresh',
pullRefreshText: 'Pull down to refresh the list'
}
]
},
]
}
});
我已经在列表中包含了pullRefresh插件,如上所示。 两天前我升级了项目的sencha touch框架到2.2,从此之后就不见了。 当我删除插件列表显示正常。
请让我知道我会出错的地方。
在此先感谢。
阅读评论在这里:http://docs.sencha.com/touch/2.2.0/#!/api/Ext.plugin.PullRefresh - 看起来像是与PullRefresh插件和最近的ST兼容性问题。 – sha 2013-04-26 16:09:16