<@U78L28DMX> I dont see where you set the actual i...
# tornadofx
r
@amanda.hinchman-dominguez I dont see where you set the actual item that you are dragging (or I am missing it) this is how I do it:
Copy code
setOnDragDetected { event ->
            startDragAndDrop(TransferMode.MOVE).apply {
                setContent { put(entryformat, selectedItem!!.uuid) }
                event.consume()
            }
        }
a
I hate to ask but I want to be sure I understand entryformat - would it be the actual DataFormat itself or dragboard.getContent(DataFormat)?
what I'm guessing is entryformat = DataFormat and selectedItem is dragboard.getContent(DataFormat)
r
Copy code
val entryformat = DataFormat("entry")
👍 1
could have been an object now that I look at it again
a
event.dragboard.getContent("entry") can't happen in setOnDragDetected, I guess there isn't a dragboard. I'm going to look through documentation (although I haven't had much luck finding some in the past)