Returns the previous item. If the current item is the first one, the property returns null.

For further usage of the returned object, you may need to typecast it according the iterator's type, e.g.:

  1. Element Iterator: iterator.prevItem.toElement().
  2. Attribute Iterator iterating by attributes: iterator.prevItem.toAttr().
Note: This property is valid only within the iterator's Step Expression and body-block.

See Also:

GOMIterator.curItem, GOMIterator.nextItem, itemAt()