Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/yxz/typing/lib.dom.ts>HTMLTableElement

Deno Standard Extensions
Go to Latest
interface HTMLTableElement
implements HTMLElement
import { type HTMLTableElement } from "https://deno.land/x/yxz@0.17.0/typing/lib.dom.ts";

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

Sets or retrieves a value that indicates the table alignment.

deprecated
bgColor: string
deprecated
border: string

Sets or retrieves the width of the border to draw around the object.

caption: HTMLTableCaptionElement | null

Retrieves the caption object of a table.

deprecated
cellPadding: string

Sets or retrieves the amount of space between the border of the cell and the content of the cell.

deprecated
cellSpacing: string

Sets or retrieves the amount of space between cells in a table.

deprecated
frame: string

Sets or retrieves the way the border frame around the table is displayed.

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

deprecated
rules: string

Sets or retrieves which dividing lines (inner borders) are displayed.

deprecated
summary: string

Sets or retrieves a description and/or structure of the object.

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

Sets or retrieves the width of the object.

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