Skip to content

@serenity-is/corelib / ValidatableElement

Interface: ValidatableElement

Defined in: src/base/validator.tsx:20

An HTMLElement that can be validated (input, select, textarea, or [contenteditable]). Extends HTMLElement with form-associated properties used by the validation engine.

Extends

  • HTMLElement

Properties

form?

optional form: HTMLFormElement

Defined in: src/base/validator.tsx:22

Owning form element, if associated.


name?

optional name: string

Defined in: src/base/validator.tsx:24

Field name used as the validation key.


type?

optional type: string

Defined in: src/base/validator.tsx:26

Input type (e.g. "text", "checkbox", "radio").


value?

optional value: string

Defined in: src/base/validator.tsx:28

Current string value of the element.