NodeEntry
API reference for node entries in Slate.
NodeEntry
objects are returned when iterating over the nodes in a Slate document tree. They consist of the node and its Path
relative to the root node in the document. Node entries are represented as tuples of [Node, Path]
.
Types
NodeEntry
The base node entry type representing any node and its path in the document.
Parameters
A tuple containing:
ElementEntry
Refers to an Element
node and its path in the document.
Parameters
A tuple containing:
TextEntry
Refers to a Text
node and its path in the document.
Parameters
A tuple containing:
AncestorEntry
Represents an ancestor node (Editor or Element) and its path.
Parameters
A tuple containing:
DescendantEntry
Represents a descendant node (Element or Text) and its path.
Parameters
A tuple containing:
NodeChildEntry
Represents a child node and its path relative to its parent.
Parameters
A tuple containing:
Generic Types
These types provide type safety when working with specific node types: