【问题标题】:Is it possible to have drag n drop short list like iPhone bookmark in Sencha Touch 2是否可以在 Sencha Touch 2 中像 iPhone 书签一样拖放短列表
【发布时间】: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


    【解决方案1】:

    我已经能够使用此示例中的代码做到这一点:https://github.com/kostysh/Drag-Drop-example-for-Sencha-Touch

    【讨论】:

    • 我看过这些代码,但这不是我想要的。请在回答之前仔细阅读问题。我想要像 iPhone 书签一样的拖拽和短列表。如果您有 iPhone,请查看 Safari 书签,您就会明白。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-06-17
    • 2012-02-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多