Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Go to Latest
interface HTMLDataListElement
implements HTMLElement
import { type HTMLDataListElement } from "https://deno.land/x/yxz@0.17.0/typing/lib.dom.ts";

Provides special properties (beyond the HTMLElement object interface it also has available to it by inheritance) to manipulate elements and their content.

Properties

Returns an HTMLCollection of the option elements of the datalist element.

Methods

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