CRUDUI

Home > @polyspec/crudui-form-binding > FormBindingOptions

FormBindingOptions interface

Options of bindForm; every member is optional.

Signature:

export interface FormBindingOptions 

Properties

Property

Modifiers

Type

Description

formErrors?

(result: ValidationResult) => string[]

(Optional) The form errors written at each validation of the whole form; without it none are written.

idPrefix?

string

(Optional) The identifier prefix the server rendered the form with; the choices of a group source are rendered with it.

keyPrefix?

string

(Optional) The keyPrefix the form was compiled with: the first segment of every control name.

language?

Language

(Optional) The language the server rendered the form with; the choices of a group source are rendered with it.

message?

(error: ValidationError) => string

(Optional) The text shown for a validation error; without it the error's message is shown.