我目前正在努力访问 DragData
on UI.drop
时拖动元素的叫做。我有这样的事情:
tile <- UI.new
# set UI.draggable True
# set UI.dragData (show player)
field <- UI.new
# set UI.droppable True
on UI.drop field $ \_ -> do
-- How to receive the DragData here?
有人可以帮助我吗?提前致谢!
你好,
莫里茨
最佳答案
我知道了:
on UI.drop field $ \dragData -> do
d <- read dragData
也许它可以帮助别人;)
关于haskell - Threepenny-GUI:拖放 - 访问 DragData,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45896067/