Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/yxz/typing/lib.dom.ts>HTMLLabelElement

Deno Standard Extensions
Go to Latest
interface HTMLLabelElement
implements HTMLElement
import { type HTMLLabelElement } from "https://deno.land/x/yxz@0.17.0/typing/lib.dom.ts";

Gives access to properties specific to elements. It inherits methods and properties from the base HTMLElement interface.

Properties

readonly
control: HTMLElement | null

Returns the form control that is associated with this element.

readonly
form: HTMLFormElement | null

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

htmlFor: string

Sets or retrieves the object to which the given label object is assigned.

Methods

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