EditTextStatus

elements.EditTextStatus (Abstract)

Represents the status of text editing operations using bit flags.

This abstract type efficiently encodes multiple boolean states related to text field interactions. It tracks whether the text has changed, was submitted (e.g., by pressing Enter), or lost focus (blurred).

The status can be implicitly converted to Bool, returning true if the text has changed.

Bit layout:

  • Bit 0: changed - Text content has been modified
  • Bit 1: submitted - User pressed Enter or similar submit action
  • Bit 2: blurred - Text field lost focus

Example usage:

var status = textField.getStatus();
if (status.changed) {
    saveChanges();
}
if (status.submitted) {
    processSubmission();
}
See: TextFieldView For text input fields, BaseTextFieldView For autocomplete text fields

Type Conversions

From:

  • [Int](/api-docs/clay-native/Int/)

To:

  • [Int](/api-docs/clay-native/Int/)