536 B
536 B
removeObject
Removes a child object from the frame
Parameters:
string|objectThe name of the child object or the object itself
Returns:
booleanWhether the object with the given name was properly removed
Usage:
- Adds a button with the id "myFirstButton", then removes it with the aforementioned id
local main = basalt.createFrame()
main:addButton("myFirstButton"):setText("Close")
:onClick(function(self)
main:removeObject("myFirstButton") -- or main:removeObject(self)
end)