OnTextChanged||doc136708

September 20, 2022

Format

local event = Editbox:GetEvent("OnTextChanged")

Describe

The event is triggered when the text in the input box control changes.

Callback function parameters

Type name introduce
Editbox editbox Current input box

Code example

--Create an editbox control
local editbox = UI:CreateGUIWidget(Enum.WidgetType.Editbox)
editbox.Parent = UI.Root

local event = editbox:GetEvent("OnTextChanged")
event:Bind(function(editbox)
    print("editbox text changed! ", editbox.Text)
end)