【发布时间】:2012-10-14 12:23:10
【问题描述】:
我想知道在 Sencha touch 2 中是否可以像 iPhone 书签的功能一样拖放短列表。
我搜索了很多煎茶触摸问答,但没有找到任何合适的答案。
此代码使列表可拖动,但仅适用于从上到下。无法从列表底部向上拖动任何项目。
var selEl = dataview.element.down("." + dataview.getSelectedCls());
var d = new Ext.util.Draggable({
element: selEl,
listeners: {
dragstart: function(self, e, startX, startY) {
console.log("test dragStart[" + startX + ":" + startY + "]");
},
drag: function(self, e, newX, newY) {
console.log("test drag[" + newX + ":" + newY + "]");
},
dragend: function(self, e, endX, endY) {
console.log("test dragend[" + endX + ":" + endY + "]");
}
}
});
sencha touch 2 中是否可以有短列表?
【问题讨论】:
标签: sencha-touch extjs sencha-touch-2 sencha-architect