Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

HTMLLabelElement

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

interface HTMLLabelElement extends HTMLElement {
readonly control: HTMLElement | null;
readonly form: HTMLFormElement | null;
htmlFor: string;
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;
}
var HTMLLabelElement: {
prototype: HTMLLabelElement;
}
;

§Extends

§Properties

§
readonly control: HTMLElement | null
[src]

Returns the form control that is associated with this element.

§
readonly form: HTMLFormElement | null
[src]

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

§
htmlFor: string
[src]

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