Easy Forms
class EasyForms
Content copied to clipboard
A class that manage all your forms states. Always create one instance per ViewModel or Compose screen.
Functions
addAndGetCustomState
Link copied to clipboard
fun <ST, CT, S : EasyFormsState<ST, CT>> addAndGetCustomState(key: Any, state: S): S
Content copied to clipboard
formData
Link copied to clipboard
formStates
Link copied to clipboard
getCheckboxState
Link copied to clipboard
fun getCheckboxState(key: Any, defaultValue: Boolean = false, isRequired: Boolean = true): EasyFormsCheckboxState
Content copied to clipboard
Create or Get a state that handle Checkbox.
getRadioButtonState
Link copied to clipboard
fun getRadioButtonState(key: Any, defaultValue: Boolean = false, isRequired: Boolean = true): EasyFormsRadioButtonState
Content copied to clipboard
Create or Get a state that handle RadioButton.
getRangeSliderState
Link copied to clipboard
fun getRangeSliderState(key: Any, defaultValue: ClosedFloatingPointRange<Float> = 0F..0F, isRequired: Boolean = true): EasyFormsRangeSliderState
Content copied to clipboard
Create or Get a state that handle RangeSlider.
getSliderState
Link copied to clipboard
fun getSliderState(key: Any, defaultValue: Float = 0F, isRequired: Boolean = true): EasyFormsSliderState
Content copied to clipboard
Create or Get a state that handle Slider.
getSwitchState
Link copied to clipboard
fun getSwitchState(key: Any, defaultValue: Boolean = false, isRequired: Boolean = true): EasyFormsSwitchState
Content copied to clipboard
Create or Get a state that handle Switch.
getTextFieldState
Link copied to clipboard
fun getTextFieldState(key: Any, easyFormsValidationType: EasyFormsValidationType, defaultValue: String = ""): EasyFormsTextFieldState
Content copied to clipboard
Create or Get a state that handle TextField.
getTriCheckboxState
Link copied to clipboard
fun getTriCheckboxState(key: Any, defaultValue: ToggleableState = ToggleableState.Indeterminate, isRequired: Boolean = true): EasyFormsTriCheckboxState
Content copied to clipboard
Create or Get a state that handle TriStateCheckbox.
observeFormStates
Link copied to clipboard
Sources
androidJvm source
Link copied to clipboard