rememberSubmissionControl
fun rememberSubmissionControl(validate: T.(FormRules<T>, dryRun: Boolean) -> Boolean): SubmissionControl<T>
Remembers a submission control for the form.
Usage:
rememberSubmissionControl { rules, dryRun ->
rules.values.map { it.test(this, dryRun = dryRun) }.all { it }
}
Content copied to clipboard
Return
The remembered submission control.
Parameters
validate
The function to validate the form value.