Home > widget-integration > InstantSearchSelectors > findPredictiveSearchContainer
InstantSearchSelectors.findPredictiveSearchContainer() method
Find a predictive search container inside a parent element.
Tries each selector from PREDICTIVE_SEARCH_SELECTORS in priority order.
Signature:
protected findPredictiveSearchContainer(parent: HTMLElement): HTMLElement | null;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
parent |
HTMLElement |
Parent element to search within |
Returns:
HTMLElement | null
The first matching element, or null