Themes

Forms/Types/ValidatedForm
ValidatedForm
Name
Description
Type
[focusError]
() => Promise<boolean>
[insertError]
(keys: string[]severity: Severity message: string id: string ) => void
[triggerValidation]
(trigger: ValidateOn forceFocus: boolean ) => Promise<any>
[wDKey]
true
connect

Connect a component to the data, for two way data binding.

Connector<T>
data

The access the contained data directly

T
extend
(options: ExtendOptions<T> ) => void
freeze
() => void
frozen

If modifications are currently frozen, (for example, by submitting the data).

boolean
listen
(e: FieldChangeEvent<T> ) => void
messages

All validation messages contained in the form.

ValidationMessages
onBeforeFocus

Called before the first error is attempted to be focused.

OnBeforeFocusHandler<T>
onChange

Called whenever the data changes.

OnChangeHandler<T>
onValidationFailed

Called whenever validation has failed.

OnValidationFailedHandler<T>
reset
() => void
set
(key: keyofT item: T[keyofT] options: any ) => void
submit
(fn: (data: T ) => void | Promise<void> options: SubmitOptions ) => Promise<void>
unfreeze
() => void
update
(update: Partial<T> ) => void
validate
(forceFocus: boolean ) => Promise<any>

Severity

Severity = "error" | "warning" | "info"

FieldChangeEvent

FieldChangeEvent<T extends object> = CustomEvent<ChangeEventValue<T, keyofT>>

ValidationMessages

Name
Description
Type
children
Record<number, Record<Severity, ValidationMessage[]>>
error
ValidationMessage[]
info
ValidationMessage[]
warning
ValidationMessage[]