Skip to content

ValidatorElement

A HTML element that can be validated.

Import:

import type { ValidatorElement } from 'obsidian-dev-utils/html-element';

Signature:

export interface ValidatorElement extends HTMLElement

Extends: HTMLElement

Properties

PropertyTypeDescription
validationMessagestringAn error message of the element.

Methods

MethodReturnsDescription
checkValidity()booleanChecks the validity of the element.
reportValidity()booleanReports the validity of the element.
setCustomValidity(error)voidSets a custom error message on the element.

Links to this page: