dynatree中的多次拖放

时间:2016-09-21 09:10:51

标签: javascript jquery dynatree jquery-dynatree

Dynatree 中,通过定义相应的回调来启用拖放功能:

$("#tree").dynatree({
        [...]
        dnd: {
            onDragStart: function(node) {
                /** This function MUST be defined to enable dragging for the tree.
                 *  Return false to cancel dragging of node.
                 */
                logMsg("tree.onDragStart(%o)", node);
                return true;
            },
            onDrop: function(node, sourceNode, hitMode, ui, draggable) {
                /** This function MUST be defined to enable dropping of items on
                 * the tree.
                 */
                logMsg("tree.onDrop(%o, %o, %s)", node, sourceNode, hitMode);
                sourceNode.move(node, hitMode);
            }
        }
    });

但是,是否可以一次拖放多个项目?非常感谢。

0 个答案:

没有答案