Home Reference Source Repository
public class | source

HTMLTableRowElement

Extends:

NodeParentNodeElementHTMLElement → HTMLTableRowElement

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public get
this get was deprecated.

Is a DOMString containing an enumerated value reflecting the align attribute.

public set

align(value: string): *

Set align of element

public get

Returns a live HTMLCollection containing the cells in the row.

public get
this get was deprecated.

Is a DOMString containing one single character.

public get
this get was deprecated.

Is a DOMString containing a integer indicating how many characters must be left at the right (for left-to-right scripts; or at the left for right-to-left scripts) of the character defined by HTMLTableRowElement.ch.

public get

Returns a long value which gives the logical position of the row within the entire table.

public get

Returns a long value which gives the logical position of the row within the table section it belongs to.

public set

vAlign(value: string): *

this set was deprecated.

Set align of element

public get
this get was deprecated.

Is a DOMString representing an enumerated value indicating how the content of the cell must be vertically aligned.

Method Summary

Public Methods
public

deleteCell(index: number)

Removes the cell at the given position in the section.

public

Method creates new <td> element and adds it to row.

Inherited Summary

From class Node
public get
public set

nodeValue(value: *): *

public get

Returns the Document that this node belongs to.

public get
public

addEventListener(eventType: string, listener: function, capturingPhase: boolean): *

public
public

getAttribute(attributeName: string): string

get attribute's value

public

hasAttribute(attributeName: string): boolean

checks if attribute exists for node

public

removeAttribute(attributeName: string)

remove attribute

public

removeEventListener(eventType: string, listener: function, capturingPhase: boolean): boolean

public

setAttribute(attributeName: string, attributeValue: string)

set attribute's value

From class ParentNode
public get

TODO return {HTMLCollection}

public get
public get
public get
public get
public get
public

appendChild(child: Node): Node

public

Clone a Node, and optionally, all of its contents.

public

Method returns true if node has child nodes.

public

insertBefore(child: Node, existingChild: Node): Node

public

removeChild(toRemoveChild: Node): Node

public

replaceChild(newChild: Node, oldChild: Node): Node

protected

_createCollection(selector: *): *

Inner method to create new live HTMLCollection.

From class Element
public get
public get

Returns an unsigned long giving the amount of children that the object has.

public get

Returns a live HTMLCollection containing all objects of type Element that are children of this ParentNode.

public get

Returns the Element that is the first child of this ParentNode, or null if there is none.

public get

The id of the element.

public set

id(id: string): *

public get

Returns the Element that is the first child of this ParentNode, or null if there is none.

public get

Returns the Element immediately following the specified one in its parent's children list, or null if the specified element is the last one in the list.

public get

Returns the Element immediately prior to the specified one in its parent's children list, or null if the specified element is the first one in the list.

public get

The tag name of the element.

public

Returns a reference to the element by its ID.

public

The Element.getElementsByClassName() method returns a live HTMLCollection containing all child elements which have all of the given class names.

public

Returns an HTMLCollection of elements with the given tag name.

public

Returns the first element that is a descendant of the element on which it is invoked that matches the specified group of selectors.

public

Returns a non-live NodeList of all elements descended from the element on which it is invoked that match the specified group of CSS selectors.

From class HTMLElement
public get

The class of the element.

public set

className(className: string): *

public get

dataset: *

public

returns a token list of the class attribute of the element

public

returns a token list of the class attribute of the element

Public Constructors

public constructor source

Override:

HTMLElement#constructor

Public Members

public get align: string source

this get was deprecated.

Is a DOMString containing an enumerated value reflecting the align attribute. It indicates the alignment of the element's contents with respect to the surrounding context. The possible values are "left", "right", and "center".

public set align(value: string): * source

Set align of element

public get cells: Element[] source

Returns a live HTMLCollection containing the cells in the row. The HTMLCollection is live and is automatically updated when rows are added or removed.

TODO:

  • Update array to HTMLCollection when it's implemented

public get ch: string source

this get was deprecated.

Is a DOMString containing one single character. This character is the one to align all the cell of a column on. It reflects the char and default to the decimal points associated with the language, e.g. '.' for English, or ',' for French. This property was optional and was not very well supported.

public get chOff: number source

this get was deprecated.

Is a DOMString containing a integer indicating how many characters must be left at the right (for left-to-right scripts; or at the left for right-to-left scripts) of the character defined by HTMLTableRowElement.ch. This property was optional and was not very well supported.

public get rowIndex: number source

Returns a long value which gives the logical position of the row within the entire table. If the row is not part of a table, returns -1.

public get sectionRowIndex: number: * source

Returns a long value which gives the logical position of the row within the table section it belongs to. If the row is not part of a section, returns -1.

Return:

number

public set vAlign(value: string): * source

this set was deprecated.

Set align of element

public get vAlign: string source

this get was deprecated.

Is a DOMString representing an enumerated value indicating how the content of the cell must be vertically aligned. It reflects the valign attribute and can have one of the following values: "top", "middle", "bottom", or "baseline".

Public Methods

public deleteCell(index: number) source

Removes the cell at the given position in the section. If the given position is greater (or equal as it starts at zero) than the amount of rows in the section, or is smaller than 0, it raises a DOMException with the IndexSizeError value.

Params:

NameTypeAttributeDescription
index number

public insertCell(index: number): HTMLElement source

Method creates new <td> element and adds it to row.

Params:

NameTypeAttributeDescription
index number

Return:

HTMLElement