ElementsControls
AddCommandBar
Adds a text command entry with a submit button.
AddCommandBar
What it does
Adds a text command entry with a submit button.
When to use it
Use it for consoles, command palettes, prompts, or short text-driven actions.
ElementFunction:AddCommandBar(CommandConfig)
LeftGroup:AddCommandBar({
Name = "Quick Command",
Placeholder = "say hello",
ButtonText = "Run",
Callback = function(text)
print("command:", 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.