Skip to content

(Component):remove

Used to remove a component.

isDead

Once this method, or mintmousse.remove is called. The component table's field isDead becomes true, and you will no longer be able to set, or get any other field. The same is true for all it's known-locally children.

Synopsis

component:remove()

Parameters

Nothing.

Returns

Nothing.

Examples

local tab = mintmousse.newTab("Remove me")

tab:remove()
if not tab.isDead then
  tab:addText({ text = "This will never run" })
end

See Also