EasyFormsTextFieldState

data class EasyFormsTextFieldState(defaultValue: String, easyFormsValidationType: EasyFormsValidationType) : EasyFormsState<State<TextFieldValue>, TextFieldValue>

Constructors

EasyFormsTextFieldState
Link copied to clipboard
fun EasyFormsTextFieldState(defaultValue: String = "", easyFormsValidationType: EasyFormsValidationType)

Functions

mapToResult
Link copied to clipboard
open override fun mapToResult(key: Any): EasyFormsResult
restoreState
Link copied to clipboard
open override fun restoreState(bundle: Bundle)
Each Bundle is tied to your EasyFormsState unique key.
saveState
Link copied to clipboard
open override fun saveState(bundle: Bundle)
Each Bundle is tied to your EasyFormsState unique key.

Properties

errorState
Link copied to clipboard
val errorState: MutableState<EasyFormsErrorState>
The error state that is used across all children of EasyFormsState.
onValueChangedCallback
Link copied to clipboard
open override val onValueChangedCallback: (TextFieldValue) -> Unit
This callback is usually being used by most of Form fields of Compose, however there are some widgets that can't use this callback, therefore please ignore its implementation when its not necessary.
state
Link copied to clipboard
open override val state: State<TextFieldValue>
This is the ST you defined when you inherited from this class.

Sources

androidJvm source
Link copied to clipboard