Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

HTMLTableRowElement

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

interface HTMLTableRowElement extends HTMLElement {
align: string;
bgColor: string;
ch: string;
chOff: string;
readonly rowIndex: number;
readonly sectionRowIndex: number;
vAlign: string;
addEventListener<K extends keyof HTMLElementEventMap>(
type: K,
listener: (this: HTMLTableRowElement, ev: HTMLElementEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void;
addEventListener(
type: string,
options?: boolean | AddEventListenerOptions,
): void;
deleteCell(index: number): void;
insertCell(index?: number): HTMLTableCellElement;
removeEventListener<K extends keyof HTMLElementEventMap>(
type: K,
listener: (this: HTMLTableRowElement, ev: HTMLElementEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void;
removeEventListener(
type: string,
options?: boolean | EventListenerOptions,
): void;
}
var HTMLTableRowElement: {
prototype: HTMLTableRowElement;
}
;

§Extends

§Properties

§
align: string
[src]

Sets or retrieves how the object is aligned with adjacent text.

§
bgColor: string
[src]
§

Retrieves a collection of all cells in the table row.

§
ch: string
[src]
§
chOff: string
[src]
§
readonly rowIndex: number
[src]

Retrieves the position of the object in the rows collection for the table.

§
readonly sectionRowIndex: number
[src]

Retrieves the position of the object in the collection.

§
vAlign: string
[src]

§Methods

§
addEventListener<K extends keyof HTMLElementEventMap>(
type: K,
listener: (this: HTMLTableRowElement, ev: HTMLElementEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void
[src]
§
addEventListener(
type: string,
options?: boolean | AddEventListenerOptions,
): void
[src]
§
deleteCell(index: number): void
[src]

Removes the specified cell from the table row, as well as from the cells collection.

@param index

Number that specifies the zero-based position of the cell to remove from the table row. If no value is provided, the last cell in the cells collection is deleted.

§
insertCell(index?: number): HTMLTableCellElement
[src]

Creates a new cell in the table row, and adds the cell to the cells collection.

@param index

Number that specifies where to insert the cell in the tr. The default value is -1, which appends the new cell to the end of the cells collection.

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