MCPcopy Index your code
hub / github.com/reactive-python/reactpy / find_elements

Function find_elements

src/py/reactpy/tests/tooling/select.py:70–84  ·  view source on GitHub ↗

Find an element by a selector. Parameters: element: The tree to search. selector: A function that returns True if the element matches. Returns: Element info, or None if not found.

(
    element: VdomJson, selector: Selector
)

Source from the content-addressed store, hash-verified

68
69
70def find_elements(
71 element: VdomJson, selector: Selector
72) -> Iterator[tuple[VdomJson, ElementInfo]]:
73 """Find an element by a selector.
74
75 Parameters:
76 element:
77 The tree to search.
78 selector:
79 A function that returns True if the element matches.
80
81 Returns:
82 Element info, or None if not found.
83 """
84 return _find_elements(element, selector, (), ())
85
86
87def _find_elements(

Callers 2

element_existsFunction · 0.85
find_elementFunction · 0.85

Calls 1

_find_elementsFunction · 0.85

Tested by

no test coverage detected