ListWalker
class
Document list blocks iterator.
Properties
-
_higherIndent : boolean
privatemodule:list/list/utils/listwalker~ListWalker#_higherIndent
Whether blocks with a higher indent level than the start block should be included in the result.
-
_includeSelf : boolean
privatemodule:list/list/utils/listwalker~ListWalker#_includeSelf
Whether start block should be included in the result (if it's matching other criteria).
-
_isForward : boolean
privatemodule:list/list/utils/listwalker~ListWalker#_isForward
The iterating direction.
-
_lowerIndent : boolean
privatemodule:list/list/utils/listwalker~ListWalker#_lowerIndent
Whether blocks with a lower indent level than the start block should be included in the result.
-
_referenceIndent : number
privatemodule:list/list/utils/listwalker~ListWalker#_referenceIndent
The reference indent. Initialized by the indent of the start block.
-
_sameAttributes : Array<string>
privatemodule:list/list/utils/listwalker~ListWalker#_sameAttributes
Additional attributes that must be the same for each block.
-
_sameIndent : boolean
privatemodule:list/list/utils/listwalker~ListWalker#_sameIndent
Whether blocks with the same indent level as the start block should be included in the result.
-
_startElement : ModelNode
privatemodule:list/list/utils/listwalker~ListWalker#_startElement
The start list item block element.
Methods
-
constructor( startElement, options )
module:list/list/utils/listwalker~ListWalker#constructor
Creates a document list iterator.
Parameters
startElement : ModelNode
The start list item block element.
options : ListWalkerOptions
-
Symbol.iterator() → Iterator<ListElement>
module:list/list/utils/listwalker~ListWalker#Symbol.iterator
-
_getStartNode() → null | ModelNode
privatemodule:list/list/utils/listwalker~ListWalker#_getStartNode
Static methods
-
first( startElement, options ) → null | ListElement
staticmodule:list/list/utils/listwalker~ListWalker.first
Performs only first step of iteration and returns the result.
Parameters
startElement : ModelNode
The start list item block element.
options : ListWalkerOptions
Returns
null | ListElement