Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/evt/lib/types/index.ts>dom.HTMLParamElement

💧EventEmitter's typesafe replacement
Go to Latest
interface dom.HTMLParamElement
implements HTMLElement
import { type dom } from "https://deno.land/x/evt@v2.4.16/lib/types/index.ts";
const { HTMLParamElement } = dom;

Provides special properties (beyond those of the regular HTMLElement object interface it inherits) for manipulating elements, representing a pair of a key and a value that acts as a parameter for an element.

Properties

name: string

Sets or retrieves the name of an input parameter for an element.

deprecated
type: string
value: string

Sets or retrieves the value of an input parameter for an element.

deprecated
valueType: string

Methods

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