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;
readonly cells: HTMLCollectionOf<HTMLTableCellElement>;
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,
listener: EventListenerOrEventListenerObject,
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,
listener: EventListenerOrEventListenerObject,
options?: boolean | EventListenerOptions,
): void;var HTMLTableRowElement: {
prototype: HTMLTableRowElement;
new (): HTMLTableRowElement;
};§Extends
§Properties
§
readonly cells: HTMLCollectionOf<HTMLTableCellElement>
[src]Retrieves a collection of all cells in the table row.
§Methods
§
addEventListener<K extends keyof HTMLElementEventMap>(
[src]type: K,
listener: (this: HTMLTableRowElement, ev: HTMLElementEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void§
addEventListener(
[src]type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | AddEventListenerOptions,
): void§
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>(
[src]type: K,
listener: (this: HTMLTableRowElement, ev: HTMLElementEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void§
removeEventListener(
[src]type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | EventListenerOptions,
): void