Bundler fix

This commit is contained in:
Robert Jelic
2025-02-18 19:20:46 +01:00
parent d1bdd9ad3c
commit a547bcdc58
2 changed files with 7 additions and 4 deletions

View File

@@ -128,6 +128,10 @@ function Tree:mouse_click(button, x, y)
end
end
--- Registers a callback for when a node is selected
--- @shortDescription Registers a callback for when a node is selected
--- @param callback function The callback function
--- @return Tree self The Tree instance
function Tree:onSelect(callback)
self:registerCallback("node_select", callback)
return self