Control:GetPropertyChangedSignal

Observes changes to a control property.

Syntax

Signature
Control:GetPropertyChangedSignal(Property: string) -> Signal

Aliases

This function has no aliases.

Parameters

ParameterTypeDescription
PropertystringProperty name to observe.

Returns

TypeDescription
SignalProperty-change signal.

Notes

The callback receives no arguments. Read the property from the control when the signal fires.

Example

Luau
local Box = Drawing.create("TextBox")
Box:GetPropertyChangedSignal("Text"):Connect(function()
    print(Box.Text)
end)
Box.Text = "hello"