OnFocusChanged
Event triggered when the focus state of the text field changes. This event helps manage the visual state of the input field and can be used to show/hide additional UI elements based on focus.
Parameters
isFocused
Whether the field currently has focus
Example:
when (event) {
is SimpleTextFieldEvent.OnFocusChanged -> {
if (event.isFocused) {
showHint()
} else {
hideHint()
}
}
}Content copied to clipboard