mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
14 lines
No EOL
261 B
CoffeeScript
14 lines
No EOL
261 B
CoffeeScript
define [
|
|
"base"
|
|
], (App) ->
|
|
App.directive "droppable", () ->
|
|
return {
|
|
scope: {
|
|
onDropCallback: "="
|
|
}
|
|
link: (scope, element, attrs) ->
|
|
element.droppable
|
|
greedy: true
|
|
hoverClass: "droppable-hover"
|
|
drop: scope.onDropCallback
|
|
} |