Object returned by TreeWalker
when traversing tree view.
Properties
-
item : Item
module:engine/view/treewalker~TreeWalkerValue#item
Item between the old and the new positions of the tree walker.
-
length : number | undefined
module:engine/view/treewalker~TreeWalkerValue#length
Length of the item. For 'elementStart'
it is 1
. For 'text'
it is
the length of that text. For 'elementEnd'
it is undefined
.
-
Next position of the iterator.
- Forward iteration: For
'elementStart'
it is the first position inside the element. For all other types it is
the position after the item.
- Backward iteration: For
'elementEnd'
it is last position inside element. For all other types it is the position
before the item.
- If the position is at the beginning or at the end of the
Text
it is always moved from the
inside of the text to its parent just before or just after that text.
-
Previous position of the iterator.
- Forward iteration: For
'elementEnd'
it is the last position inside the element. For all other types it is the
position before the item.
- Backward iteration: For
'elementStart'
it is the first position inside the element. For all other types it is
the position after item.
- If the position is at the beginning or at the end of the
Text
it is always moved from the
inside of the text to its parent just before or just after that text.
-
Every day, we work hard to keep our documentation complete. Have you spotted outdated information? Is something missing?
Please report it via our issue tracker.
With the release of version 42.0.0, we have rewritten much of our documentation to reflect the new import paths and features.
We appreciate your feedback to help us ensure its accuracy and completeness.