Methods
RemoveComponent

menu refers to the return value of Menu:Create

RemoveComponent

Execute menu:RemoveComponent to remove a component via the Id.

Parameters

menu:RemoveComponent(id)
NameTypeDescriptionRequired
idstringThe id of the componentYes

Example

client/example.lua
local menu--[[Menu]] = Menu:Create('Title', 'Description', 'top-right', '#fff');
 
local placeholder = menu:AddPlaceholder('Placeholder');
 
menu:RemoveComponent(placeholder.id);
 
menu:FindComponent(placeholder.id)--[[nil]];