Expand all

ve.dm.TableNodeCellIterator

Constructor

new ve.dm.TableNodeCellIterator(tableNode) #

A helper class to iterate over the cells of a table node.

It provides a unified interface to iterate cells in presence of table sections, e.g., providing consecutive row indexes.

Parameters:

Name Type Description
tableNode ve.dm.TableNode

Table node to iterate through

Mixes in:
Source:
A helper class to iterate over the cells of a table node.

Methods

isFinished() → {boolean} #

Check if the iterator has finished iterating over the cells of a table node.

Source:

Returns:

Iterator is finished

Type
boolean
Check if the iterator has finished iterating over the cells of a table node.

next() → {ve.dm.TableCellNode|null|undefined} #

Get the next cell node

Source:

Returns:

Next cell node, null if a not a table cell, or undefined if at the end

Type
ve.dm.TableCellNode | null | undefined

Throws:

TableNodeCellIterator has no more cells left.

Type
Error
Get the next cell node

nextCell() #

Move to the next table cell

Source:
Move to the next table cell

nextRow() #

Move to the next table row

nextSection() #

Move to the next table section

Events

newRow(node) #

Parameters:

Name Type Description
node ve.dm.TableRowNode

Table row node

Source:

newSection(node) #

Parameters:

Name Type Description
node ve.dm.TableSectionNode

Table section node

Source: