FormScope
Functions
Link copied to clipboard
fun <T : Any, V> FormScope<T>.rememberFieldRuleControl(name: FieldName, select: T.() -> V, update: T.(V) -> T, enabled: T.() -> Boolean = { true }, dependsOn: Set<FieldName>? = null, builder: ValidationRuleBuilder<V>.() -> Unit): FieldControl<V>
fun <T : Any, V> FormScope<T>.rememberFieldRuleControl(name: FieldName, select: T.() -> V, update: T.(V) -> T, enabled: T.() -> Boolean = { true }, dependsOn: Set<FieldName>? = null, ruleSet: ValidationRuleSet<V>): FieldControl<V>
Remembers a field control for the given field name with the given rule set.
Link copied to clipboard
fun rememberSubmissionControl(validate: T.(FormRules<T>, dryRun: Boolean) -> Boolean): SubmissionControl<T>
Remembers a submission control for the form.
Link copied to clipboard
Remembers a submission rule control that automatically controls state of the form.
Link copied to clipboard
Remembers a watch value that automatically updates when the form state changes.