FormPolicy
Defines the policy configuration for form validation behavior.
FormPolicy combines both form-level and field-level configuration options to provide a comprehensive validation strategy for forms. It allows you to customize how and when validation occurs at both the form and field levels.
Usage:
val customPolicy = FormPolicy(
formOptions = FormOptions(
preValidation = true,
preValidationDelayOnChange = 300.milliseconds
),
fieldOptions = FieldOptions(
validationDelayOnChange = 250.milliseconds
)
)
Content copied to clipboard