ElementsControls
AddFilterList
Adds a searchable or filterable list of selectable items.
AddFilterList
What it does
Adds a searchable or filterable list of selectable items.
When to use it
Use it for long collections where users need to narrow visible entries quickly.
ElementFunction:AddFilterList(FilterConfig)
RightGroup:AddFilterList({
Name = "Command Finder",
Placeholder = "Search actions...",
Items = {
{Name = "Auto Farm", Description = "Toggle farming helpers", Callback = function() AutoFarm:Set(true) end},
{Name = "Clear Players", Description = "Clear selected player targets", Callback = function() PlayerDropdown:Clear() end},
{Name = "Copy Job", Description = "Copy the current JobId", Callback = function() if setclipboard then setclipboard(game.JobId) end end},
{Name = "Select Everyone", Description = "Select all player dropdown rows", Callback = function() PlayerDropdown:SelectAll() end}
},
Callback = function(item)
print("picked", item.Name or item.Text)
end
})Behavior and return value
Call this method on the compatible section, tab, panel, or element container shown by the signature. Store the returned value when you need to update, read, or destroy the element later.
Fields marked optional may be omitted. XLQP then uses the method’s built-in default or leaves that feature disabled.