MCPcopy Create free account
hub / github.com/UI5/webcomponents / walk

Method walk

packages/main/src/Tree.ts:499–501  ·  view source on GitHub ↗

* Perform Depth-First-Search walk on the tree and run a callback on each node * @public * @param callback function to execute on each node of the tree with 3 arguments: the node, the level and the index

(callback: WalkCallback)

Source from the content-addressed store, hash-verified

497 * @param callback function to execute on each node of the tree with 3 arguments: the node, the level and the index
498 */
499 walk(callback: WalkCallback): void {
500 walkTree(this, 1, callback);
501 }
502
503 _getItems(): Array<HTMLElement> {
504 const allLiNodesTraversed: Array<HTMLElement> = [];

Callers 3

_prepareTreeItemsMethod · 0.95
_getItemsMethod · 0.95
kitchen-scripts.jsFile · 0.80

Calls 1

walkTreeFunction · 0.85

Tested by

no test coverage detected