getCheckboxState

fun getCheckboxState(key: Any, defaultValue: Boolean = false, isRequired: Boolean = true): EasyFormsCheckboxState

Create or Get a state that handle Checkbox.

Return

EasyFormsCheckboxState that provide Checkbox state handling.

Parameters

key

a unique identifier for this state.

defaultValue

control if the Checkbox default state should be checked/unchecked.

isRequired

if this is true, then the user must thick the checkbox to change its state to valid.

Sources

androidJvm source
Link copied to clipboard