Module

x/evt/lib/index.ts

šŸ’§EventEmitter's typesafe replacement
Go to Latest
interface dom.HTMLTextAreaElement
implements HTMLElement
import { type dom } from "https://deno.land/x/evt@v2.3.1/lib/index.ts";
const { HTMLTextAreaElement } = dom;

Provides special properties and methods for manipulating the layout and presentation of elements.

Properties

autocomplete: string
cols: number

Sets or retrieves the width of the object.

defaultValue: string

Sets or retrieves the initial contents of the object.

dirName: string
disabled: boolean
readonly
form: HTMLFormElement | null

Retrieves a reference to the form that the object is embedded in.

readonly
labels: NodeListOf<HTMLLabelElement>
maxLength: number

Sets or retrieves the maximum number of characters that the user can enter in a text control.

minLength: number
name: string

Sets or retrieves the name of the object.

placeholder: string

Gets or sets a text string that is displayed in an input field as a hint or prompt to users as the format or type of information they need to enter.The text appears in an input field until the user puts focus on the field.

readOnly: boolean

Sets or retrieves the value indicated whether the content of the object is read-only.

required: boolean

When present, marks an element that can't be submitted without a value.

rows: number

Sets or retrieves the number of horizontal rows contained in the object.

selectionDirection: "forward" | "backward" | "none"
selectionEnd: number

Gets or sets the end position or offset of a text selection.

selectionStart: number

Gets or sets the starting position or offset of a text selection.

readonly
textLength: number
readonly
type: string

Retrieves the type of control.

readonly
validationMessage: string

Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting.

readonly
validity: ValidityState

Returns a ValidityState object that represents the validity states of an element.

value: string

Retrieves or sets the text in the entry field of the textArea element.

readonly
willValidate: boolean

Returns whether an element will successfully validate based on forms validation rules and constraints.

wrap: string

Sets or retrieves how to handle wordwrapping in the object.

Methods

checkValidity(): boolean

Returns whether a form will validate when it is submitted, without having to submit it.

reportValidity(): boolean
select(): void

Highlights the input area of a form element.

setCustomValidity(error: string): void

Sets a custom error message that is displayed when a form is submitted.

setRangeText(replacement: string): void
setRangeText(
replacement: string,
start: number,
end: number,
selectionMode?: SelectionMode,
): void
setSelectionRange(
start: number,
end: number,
direction?: "forward" | "backward" | "none",
): void

Sets the start and end positions of a selection in a text field.

addEventListener<K extends keyof HTMLElementEventMap>(
type: K,
listener: (this: HTMLTextAreaElement, ev: HTMLElementEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void
addEventListener(
type: string,
options?: boolean | AddEventListenerOptions,
): void
removeEventListener<K extends keyof HTMLElementEventMap>(
type: K,
listener: (this: HTMLTextAreaElement, ev: HTMLElementEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void
removeEventListener(
type: string,
options?: boolean | EventListenerOptions,
): void