Allow changing onClick handler in Element

This commit is contained in:
Gabriel Tofvesson 2024-10-01 14:54:36 +00:00
parent 3e56e8c9d6
commit 692d1a82b9

View File

@ -167,4 +167,8 @@ function Element:handleEvent(evt)
return false
end
function Element:setOnClick(onClick)
self.onClick = onClick
end
return Element