form-schema-runtime - v1.0.0
    Preparing search index...

    Interface FormInstance

    Public controller returned by createForm.

    interface FormInstance {
        destroy(): void;
        getValues(): FormValues;
        reset(): void;
        setValues(values: FormValues): void;
        validate(): boolean;
    }
    Index

    Methods

    • Remove event listeners and DOM owned by the form.

      Returns void

    • Restore initial values and clear touched, dirty, and error state.

      Returns void

    • Validate visible fields and return whether the form is valid.

      Returns boolean