menu refers to the return value of Menu:Create
FindComponent
Execute menu:FindComponent to find a component via the Id.
Parameters
menu:FindComponent(id)| Name | Type | Description | Required |
|---|---|---|---|
| id | string | The id of the component | Yes |
Example
client/example.lua
local menu--[[Menu]] = Menu:Create('Title', 'Description', 'top-right', '#fff');
local placeholder = menu:AddPlaceholder('Placeholder');
menu:FindComponent(placeholder.id);