Skip to content

How to get drag and drop target and source #77

@gautamgolakiya

Description

@gautamgolakiya

I have many card in which i have to put drag and drop. Now as matter of fact drag and drop is work perfect but how can i get the target and source of my block which is i am drag and drop.

The code looking something like this :

function TaskCtrl($scope, $http, dragulaService) {
$scope.many = ['The', 'possibilities', 'are', 'endless!'];
$scope.many2 = ['Explore', 'them'];

    $scope.$on('another-bag.drag', function (e, el){
         console.log('drag ' + $(el).html());
    });

   $scope.$on('another-bag.drop', function (e , el) {
         console.log('drop ' + $(el).html() + ' in ' + $(e).html() );
    });

});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions