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

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

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

Provides special properties and methods (beyond the regular HTMLElement object interface it also has available to it by inheritance) for manipulating the layout and presentation of tables in an HTML document.

Properties

deprecated
align: string
deprecated
bgColor: string
deprecated
border: string
caption: HTMLTableCaptionElement | null

Retrieves the caption object of a table.

deprecated
cellPadding: string
deprecated
cellSpacing: string
deprecated
frame: string

Sets or retrieves the number of horizontal rows contained in the object.

deprecated
rules: string
deprecated
summary: string

Retrieves a collection of all tBody objects in the table. Objects in this collection are in source order.

Retrieves the tFoot object of the table.

Retrieves the tHead object of the table.

deprecated
width: string

Methods

createCaption(): HTMLTableCaptionElement

Creates an empty caption element in the table.

Creates an empty tBody element in the table.

Creates an empty tFoot element in the table.

Returns the tHead element object if successful, or null otherwise.

deleteCaption(): void

Deletes the caption element and its contents from the table.

deleteRow(index: number): void

Removes the specified row (tr) from the element and from the rows collection.

deleteTFoot(): void

Deletes the tFoot element and its contents from the table.

deleteTHead(): void

Deletes the tHead element and its contents from the table.

insertRow(index?: number): HTMLTableRowElement

Creates a new row (tr) in the table, and adds the row to the rows collection.

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