(instance: ComponentInstance, selector?: string)
| 540 | } |
| 541 | |
| 542 | findDOMNodes(instance: ComponentInstance, selector?: string): Array<Element | Text> | null { |
| 543 | const elements = this._renderer?.findDOMNodes(instance) |
| 544 | if (!elements) { |
| 545 | return null |
| 546 | } |
| 547 | |
| 548 | if (selector) { |
| 549 | const matched = getMatched(elements, selector) |
| 550 | if (!matched) { |
| 551 | return null |
| 552 | } |
| 553 | return [matched] |
| 554 | } |
| 555 | return elements |
| 556 | } |
| 557 | |
| 558 | getNodeInstanceFromElement(target: Element | null): NodeInstance<ComponentInstance, Node> | null { |
| 559 | if (!target) { |
no test coverage detected