Module

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

šŸ’§EventEmitter's typesafe replacement
Go to Latest
interface dom.HTMLProgressElement
implements HTMLElement
import { type dom } from "https://deno.land/x/evt@v2.3.1/lib/index.ts";
const { HTMLProgressElement } = dom;

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