Skip to content
This repository was archived by the owner on Oct 4, 2020. It is now read-only.

Commit 60a4a3d

Browse files
committed
Basic DataTransfer binding
1 parent efa061b commit 60a4a3d

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// module DOM.Event.DragEvent.DataTransfer
2+
3+
exports.files = function(dataTransfer) {
4+
return dataTransfer.files;
5+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
module DOM.Event.DragEvent.DataTransfer where
2+
3+
import DOM.File.Types (FileList)
4+
5+
foreign import data DataTransfer :: *
6+
7+
-- | Contains a list of all the local files available on the data transfer.
8+
-- | Empty if the drag operation doesn't involve dragging files.
9+
foreign import files :: DataTransfer -> FileList

0 commit comments

Comments
 (0)