interface dom.HTMLLabelElement
implements HTMLElement
import { type dom } from "https://deno.land/x/evt@v2.4.17/lib/index.ts";
const { HTMLLabelElement } = dom;
Gives access to properties specific to elements. It inherits methods and properties from the base HTMLElement interface.
Properties
readonly
control: HTMLElement | nullreadonly
form: HTMLFormElement | nullRetrieves a reference to the form that the object is embedded in.
Methods
addEventListener<K extends keyof HTMLElementEventMap>(): void
type: K,
listener: (this: HTMLLabelElement, ev: HTMLElementEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
addEventListener(): void
type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | AddEventListenerOptions,
removeEventListener<K extends keyof HTMLElementEventMap>(): void
type: K,
listener: (this: HTMLLabelElement, ev: HTMLElementEventMap[K]) => any,
options?: boolean | EventListenerOptions,