{"action":"created","issue":{"url":"https://api.github.com/repos/bevacqua/angular-dragula/issues/67","repository_url":"https://api.github.com/repos/bevacqua/angular-dragula","labels_url":"https://api.github.com/repos/bevacqua/angular-dragula/issues/67/labels{/name}","comments_url":"https://api.github.com/repos/bevacqua/angular-dragula/issues/67/comments","events_url":"https://api.github.com/repos/bevacqua/angular-dragula/issues/67/events","html_url":"https://github.com/bevacqua/angular-dragula/issues/67","id":152588790,"number":67,"title":"Is it possible to disable the draggability without removing the directive?","user":{"login":"LBiv","id":10275317,"avatar_url":"https://avatars.githubusercontent.com/u/10275317?v=3","gravatar_id":"","url":"https://api.github.com/users/LBiv","html_url":"https://github.com/LBiv","followers_url":"https://api.github.com/users/LBiv/followers","following_url":"https://api.github.com/users/LBiv/following{/other_user}","gists_url":"https://api.github.com/users/LBiv/gists{/gist_id}","starred_url":"https://api.github.com/users/LBiv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LBiv/subscriptions","organizations_url":"https://api.github.com/users/LBiv/orgs","repos_url":"https://api.github.com/users/LBiv/repos","events_url":"https://api.github.com/users/LBiv/events{/privacy}","received_events_url":"https://api.github.com/users/LBiv/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-05-02T16:24:31Z","updated_at":"2016-11-01T18:17:59Z","closed_at":null,"body":"I have a request call which populated a bag for me, but if I start dragging while it's getting populated it's understandably resulting in very buggy behavior. I was thinking maybe there's a way to toggle the dragging feature until the bag is fully populated to avoid the buggy behavior.\n"},"comment":{"url":"https://api.github.com/repos/bevacqua/angular-dragula/issues/comments/257648280","html_url":"https://github.com/bevacqua/angular-dragula/issues/67#issuecomment-257648280","issue_url":"https://api.github.com/repos/bevacqua/angular-dragula/issues/67","id":257648280,"user":{"login":"tomarak","id":8728339,"avatar_url":"https://avatars.githubusercontent.com/u/8728339?v=3","gravatar_id":"","url":"https://api.github.com/users/tomarak","html_url":"https://github.com/tomarak","followers_url":"https://api.github.com/users/tomarak/followers","following_url":"https://api.github.com/users/tomarak/following{/other_user}","gists_url":"https://api.github.com/users/tomarak/gists{/gist_id}","starred_url":"https://api.github.com/users/tomarak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomarak/subscriptions","organizations_url":"https://api.github.com/users/tomarak/orgs","repos_url":"https://api.github.com/users/tomarak/repos","events_url":"https://api.github.com/users/tomarak/events{/privacy}","received_events_url":"https://api.github.com/users/tomarak/received_events","type":"User","site_admin":false},"created_at":"2016-11-01T18:17:59Z","updated_at":"2016-11-01T18:17:59Z","body":"@LBiv Checkout:\r\nhttps://github.com/bevacqua/dragula#dragulacontainers-options\r\nhttps://github.com/bevacqua/angular-dragula#drake-options\r\n\r\nBy default, the `moves` option returns true, but you can inject `dragulaService` into your directive and overwrite the `moves` function with something like:\r\n```javascript\r\ndragulaService.options($scope, 'orders-bag', {\r\n  moves: function (el, source, handle, sibling) {\r\n    return someBoolean\r\n  }\r\n});\r\n```\r\nWhere `someBoolean` can be a `$scope` value or the result of some function call."}}
{"actor":{"display_login":"tomarak"}}