Skip to content

ValidatorElement

A HTML element that can be validated.

Import:

import type { ValidatorElement } from '@mnaoumov/typescript-lib/html-element';

Signature:

export interface ValidatorElement extends HTMLElement

Extends: HTMLElement

Properties

PropertyTypeDescription
checkValidity() => booleanChecks the validity of the element.
reportValidity() => booleanReports the validity of the element.
setCustomValidity(error: string) => voidSets a custom error message on the element.
validationMessagestringAn error message of the element.