blessed-components - v1.20.0
    Preparing search index...

    Interface FormData

    Stateful data accepted by the Blessed form adapter.

    interface FormData {
        fields?: FormFieldBinding[];
        onReset?: (values: FormValues) => void;
        onSubmit?: (values: FormValues) => void;
        onValidation?: (errors: FormErrors, values: FormValues) => void;
    }

    Hierarchy

    Index

    Properties

    fields?: FormFieldBinding[]

    Initial registered field bindings.

    onReset?: (values: FormValues) => void

    Called after reset.

    onSubmit?: (values: FormValues) => void

    Called when submit passes validation.

    onValidation?: (errors: FormErrors, values: FormValues) => void

    Called after validation.