onChange

@JvmName(name = "onChangeString")
fun <S : Inputtable> S.onChange(func: S.(String) -> Boolean): S

Add a listener for changes to the given String-type property.

In PolyUI, this is for Text and TextInput only.

Since

1.0.6


@JvmName(name = "onChangeState")
fun <S : Inputtable> S.onChange(func: S.(Boolean) -> Boolean): S

Add a listener for changes to the given Boolean-type property.

In PolyUI, this is for Checkbox and Switch only.

Since

1.0.6


@JvmName(name = "onChangeIndex")
fun <S : Inputtable> S.onChange(func: S.(Int) -> Boolean): S

Add a listener for changes to the given Int-type property.

In PolyUI, this is for Radiobutton, and Dropdown only.

Since

1.0.6


@JvmName(name = "onChangeNumber")
fun <S : Inputtable> S.onChange(func: S.(Float) -> Boolean): S

Add a listener for changes to the given Float-type property.

In PolyUI, this is for Slider only.

Since

1.0.6