Control:GetPropertyChangedSignal
Observes changes to a control property.
Syntax
Signature
Control:GetPropertyChangedSignal(Property: string) -> SignalAliases
This function has no aliases.
Parameters
| Parameter | Type | Description |
|---|---|---|
Property | string | Property name to observe. |
Returns
| Type | Description |
|---|---|
Signal | Property-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"