Roqueform
    Preparing search index...

    The mixin added to fields by the constraintValidationPlugin.

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

    Properties

    element: null | Element

    The DOM element which constraints are tracked, or null if there's no associated element.

    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 null

      A field for which validity was reported, or null if there are no invalid fields.