拖动现有表行后创建新表并将该行追加到新表中?

时间:2016-10-27 12:28:31

标签: javascript jquery angularjs html5

.directive('dbDraggablenew', function () {
    return {
      restrict: 'AE',
      link: function(scope, element) {
        $(element).draggable({ 
            helper: function(){
            var selected = $('.childgrid tr.selectedRow');
            if (selected.length === 0) {
              selected = $(this).addClass('selectedRow');
            }
            var container = $('<div/>').attr('id', 'draggingContainer');
            container.append(selected.clone().removeClass("selectedRow"));
            return container;
          }
         });
      }
    };
  });

那么drop函数会是什么?

0 个答案:

没有答案