을 가지고 당신은 여러 별도의 드래그 & 방울을 뜻? 한 손가락으로 한 요소를 다른 손가락으로 두 번째 요소로 드레 이닝하는 것처럼?
그게 전부는 아니 dragula도 dragular 지원,하지만 난 그것을 할 수있는 새로운 라이브러리를하고 있어요,하지만 지금은 아직 진행 :/
내가 그것을 지원하는 다른 라이브러리를 잘 모릅니다.
EDIT (27.11.16)은 :
나는 kol1991 @ 귀하의 제안에 대한 귀하의 펜 http://codepen.io/luckylooke/pen/zodmEO
angular.module("testDnD", ["dragularModule"]).
controller("test", ['$scope', 'dragularService', function($scope, dragularService) {
$scope.selected = [];
$scope.filter = [];
$scope.testObj = [{...}];
$scope.modelClickData = function(test) {
console.log(test);
$scope.popdata = test;
};
$scope.modelSelect = function(test) {
test.selected = !test.selected;
if (test.selected)
$scope.selected.push(test);
else
$scope.selected.splice($scope.selected.indexOf(test), 1);
// console.log('selected', test);
};
var containerLeft = document.querySelector('#thumbnailTST');
var containerRight = document.querySelector('#filler');
dragularService.cleanEnviroment();
dragularService([containerLeft, containerRight], {
copy: true,
containersModel: [$scope.testObj, $scope.filter],
scope: $scope
});
$scope.$on('dragularcloned', function() {
var mirror = $('.gu-mirror');
if ($scope.selected.length > 1 && mirror.length) { // is multiple drag
mirror.addClass('multipledrag');
}
});
$scope.$on('dragulardrop', function(e, el, targetcontainer, sourcecontainer, conmodel, elindex, targetmodel, dropindex) {
if ($scope.selected.length > 1) { // is multiple drag
$scope.selected.forEach(function(item) {
if (item != $scope.testObj[elindex]) {
var clone = {};
clone = $.extend(true, clone, item);
delete clone.$$hashKey;
$scope.filter.splice(++dropindex, 0, clone);
}
});
}
console.log($scope.filter);
});
}])
답장을 보내 주셔서 감사합니다 @ Luckylooke. 나는 당신이 이것에 대해 대답하기를 간절히 기다리고있었습니다. 여러 드래그/드롭으로 여러 요소를 선택한 다음 대상 컨테이너로 드래그 할 수 있습니다. – pBanyal
@pBanyal 드라큘라 또는 드라큘러로 만들 수 있으므로 sceanrio와 함께 fiddle/codepen/...을 만들면 해결할 수 있습니다.) – Luckylooke
사과 @ Luckylooke가 너무 늦게 응답했습니다. v.urgent 마감 기한이있었습니다. 여기에 필자의 펜 http://codepen.io/pBanyal/pen/ObjQPg가 있으며 다른 것이 필요한지 알려주십시오. – pBanyal