HTMLTableSectionElement
Provides special properties and methods (beyond the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of sections, that is headers, footers and bodies, in an HTML table.
interface HTMLTableSectionElement extends HTMLElement {
align: string;
ch: string;
chOff: string;
readonly rows: HTMLCollectionOf<HTMLTableRowElement>;
vAlign: string;
addEventListener<K extends keyof HTMLElementEventMap>(
type: K,
listener: (this: HTMLTableSectionElement, ev: HTMLElementEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void;addEventListener(
type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | AddEventListenerOptions,
): void;deleteRow(index: number): void;
insertRow(index?: number): HTMLTableRowElement;
removeEventListener<K extends keyof HTMLElementEventMap>(
type: K,
listener: (this: HTMLTableSectionElement, ev: HTMLElementEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void;removeEventListener(
}type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | EventListenerOptions,
): void;var HTMLTableSectionElement: {
prototype: HTMLTableSectionElement;
new (): HTMLTableSectionElement;
};§Extends
§Properties
§
readonly rows: HTMLCollectionOf<HTMLTableRowElement>
[src]Sets or retrieves the number of horizontal rows contained in the object.
§Methods
§
addEventListener<K extends keyof HTMLElementEventMap>(
[src]type: K,
listener: (this: HTMLTableSectionElement, ev: HTMLElementEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void§
addEventListener(
[src]type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | AddEventListenerOptions,
): void§
deleteRow(index: number): void
[src]Removes the specified row (tr) from the element and from the rows collection.
@param index
Number that specifies the zero-based position in the rows collection of the row to remove.
§
insertRow(index?: number): HTMLTableRowElement
[src]Creates a new row (tr) in the table, and adds the row to the rows collection.
@param index
Number that specifies where to insert the row in the rows collection. The default value is -1, which appends the new row to the end of the rows collection.
§
removeEventListener<K extends keyof HTMLElementEventMap>(
[src]type: K,
listener: (this: HTMLTableSectionElement, ev: HTMLElementEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void§
removeEventListener(
[src]type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | EventListenerOptions,
): void