ListWalker
class
Document list blocks iterator.
Properties
_higherIndent: booleanprivatemodule:list/list/utils/listwalker~ListWalker#_higherIndentWhether blocks with a higher indent level than the start block should be included in the result.
_includeSelf: booleanprivatemodule:list/list/utils/listwalker~ListWalker#_includeSelfWhether start block should be included in the result (if it's matching other criteria).
_isForward: booleanprivatemodule:list/list/utils/listwalker~ListWalker#_isForwardThe iterating direction.
_lowerIndent: booleanprivatemodule:list/list/utils/listwalker~ListWalker#_lowerIndentWhether blocks with a lower indent level than the start block should be included in the result.
_referenceIndent: numberprivatemodule:list/list/utils/listwalker~ListWalker#_referenceIndentThe reference indent. Initialized by the indent of the start block.
_sameAttributes: Array<string>privatemodule:list/list/utils/listwalker~ListWalker#_sameAttributesAdditional attributes that must be the same for each block.
_sameIndent: booleanprivatemodule:list/list/utils/listwalker~ListWalker#_sameIndentWhether blocks with the same indent level as the start block should be included in the result.
_startElement: ModelNodeprivatemodule:list/list/utils/listwalker~ListWalker#_startElementThe start list item block element.
Methods
constructor( startElement, options )module:list/list/utils/listwalker~ListWalker#constructorCreates a document list iterator.
Parameters
startElement: ModelNodeThe start list item block element.
options: ListWalkerOptions
Symbol.iterator() → Iterator<ListElement>module:list/list/utils/listwalker~ListWalker#Symbol.iterator_getStartNode() → ModelNode | nullprivatemodule:list/list/utils/listwalker~ListWalker#_getStartNode
Static methods
first( startElement, options ) → ListElement | nullstaticmodule:list/list/utils/listwalker~ListWalker.firstPerforms only first step of iteration and returns the result.
Parameters
startElement: ModelNodeThe start list item block element.
options: ListWalkerOptions
Returns
ListElement | null