insert_cell method

insert_cell

Insert an empty TD cell into this row. If index is -1 or equal to the number of cells, the new cell is appended.

Returns

The newly created cell.

def insert_cell(self, index):
    ...
ParameterTypeDescription
indexintThe place to insert the cell, starting from 0.

Exceptions

ExceptionDescription
DOMExceptionINDEX_SIZE_ERR: Raised if the specified index is greater
than the number of cells or if the index is a negative number other
than -1.
@version DOM Level 2

See Also