SimpleTextFieldController

class SimpleTextFieldController(val textFieldConfig: TextFieldConfig, val showOptionalLabel: Boolean = false, val initialValue: String? = null) : TextFieldController, SectionFieldErrorController

This class will provide the onValueChanged and onFocusChanged functionality to the field's composable. These functions will update the observables as needed. It is responsible for exposing immutable observers for its data

Constructors

Link copied to clipboard
constructor(textFieldConfig: TextFieldConfig, showOptionalLabel: Boolean = false, initialValue: String? = null)

Properties

Link copied to clipboard
open override val autofillType: AutofillType?
Link copied to clipboard
Link copied to clipboard
open override val contentDescription: StateFlow<String>
Link copied to clipboard
open override val debugLabel: String
Link copied to clipboard
open val enabled: Boolean
Link copied to clipboard
open override val error: StateFlow<FieldError?>

An error must be emitted if it is visible or not visible.

Link copied to clipboard
open override val fieldState: StateFlow<TextFieldState>
Link copied to clipboard
open override val fieldValue: StateFlow<String>
Link copied to clipboard
open override val formFieldValue: StateFlow<FormFieldEntry>
Link copied to clipboard
open override val initialValue: String? = null
Link copied to clipboard
open override val isComplete: StateFlow<Boolean>
Link copied to clipboard
open override val keyboardType: KeyboardType
Link copied to clipboard
open override val label: MutableStateFlow<Int?>
Link copied to clipboard
open override val loading: StateFlow<Boolean>
Link copied to clipboard
open override val placeHolder: MutableStateFlow<String?>
Link copied to clipboard
open override val rawFieldValue: StateFlow<String>
Link copied to clipboard
open override val showOptionalLabel: Boolean = false
Link copied to clipboard
Link copied to clipboard
open override val trailingIcon: StateFlow<TextFieldIcon?>
Link copied to clipboard
open override val visibleError: StateFlow<Boolean>
Link copied to clipboard

Functions

Link copied to clipboard
open override fun ComposeUI(enabled: Boolean, field: SectionFieldElement, modifier: Modifier, hiddenIdentifiers: Set<IdentifierSpec>, lastTextFieldIdentifier: IdentifierSpec?, nextFocusDirection: FocusDirection, previousFocusDirection: FocusDirection)
Link copied to clipboard
open override fun onFocusChange(newHasFocus: Boolean)
Link copied to clipboard
open override fun onRawValueChange(rawValue: String)

This is called when the value changed to is a raw backing value, not a display value.

Link copied to clipboard
open override fun onValueChange(displayFormatted: String): TextFieldState?

This is called when the value changed to is a display value.