Home > widget-integration > PredictiveBundleController > findElementById
PredictiveBundleController.findElementById() method
Finds an element by id within a root node.
Signature:
findElementById(root: ParentNode, id: string): HTMLElement | null;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
root |
ParentNode |
Root node to search. |
|
id |
string |
DOM id to locate. |
Returns:
HTMLElement | null
Matching element, or null when absent.