ValidatorElement
A HTML element that can be validated.
Import:
import type { ValidatorElement } from 'obsidian-dev-utils/html-element';Signature:
export interface ValidatorElement extends HTMLElementExtends: HTMLElement
Properties
| Property | Type | Description |
|---|---|---|
| validationMessage | string | An error message of the element. |
Methods
| Method | Returns | Description |
|---|---|---|
| checkValidity() | boolean | Checks the validity of the element. |
| reportValidity() | boolean | Reports the validity of the element. |
| setCustomValidity(error) | void | Sets a custom error message on the element. |
Links to this page: