Tree.allowdrop readwrite


Get or set the Tree's ability to be used as the target of a drag-and-drop operation

Example

--! luart-extensions import ui -- create a window local win = ui.Window("Tree:onDrop() sample", 440, 380) local widget = ui.Tree(win, {"Drop it here !"}) widget.allowdrop = true widget:center() -- set a onDrop() event function widget:onDrop(kind, content) ui.info("kind: '"..kind.."'\ncontent: "..tostring(content), "Content dropped on Tree") end await win:showasync()