Roqueform
    Preparing search index...

    The mixin added to fields by the constraintValidationPlugin.

    interface ConstraintValidationMixin {
        isInvalid: boolean;
        validity: Readonly<ValidityState>;
        getInvalidFields(): never[];
        ref(element: null | Element): void;
        reportValidity(): boolean;
    }
    Index

    Properties

    isInvalid: boolean

    true if this field has a validity issue, or false otherwise.

    The copy of the last reported validity state read from the validated element.

    Methods

    • Returns all invalid fields.

      Returns never[]

    • Associates the field with the DOM element.

      Parameters

      Returns void

    • Shows error message balloon for the first element that is associated with this field or any of its child fields, that has an associated error via calling reportValidity.

      Returns boolean

      true if a field and all of its children are valid, or false otherwise.