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

x/evt/lib/types/lib.dom.ts>HTMLProgressElement

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

Provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of elements.

Properties

readonly
labels: NodeListOf<HTMLLabelElement>
max: number

Defines the maximum, or "done" value for a progress element.

readonly
position: number

Returns the quotient of value/max when the value attribute is set (determinate progress bar), or -1 when the value attribute is missing (indeterminate progress bar).

value: number

Sets or gets the current value of a progress element. The value must be a non-negative number between 0 and the max value.

Methods

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