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.
Returns:
Iterator is finished
- Type
- boolean
- Source:
Check if the iterator has finished iterating over the cells of a table node.
next() → {ve.dm.TableCellNode|null|undefined}
#
null|undefined}
#
Get the next cell node
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
- Source:
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
Fires:
- Source:
Move to the next table row
nextSection()
#
Move to the next table section
Fires:
- Source:
Move to the next table section