Home > widget-integration > InstantSearchController > injectISWIntoDialog
InstantSearchController.injectISWIntoDialog() method
Inject the ISW element into a theme search dialog.
Waits for the ISW root element and the predictive-search container inside the dialog to be available, then inserts ISW immediately after the predictive-search container and sizes the dialog to fit.
Signature:
protected injectISWIntoDialog(dialog: HTMLElement): Promise<boolean>;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
dialog |
HTMLElement |
The open dialog element to inject ISW into |
Returns:
Promise<boolean>
true if ISW was successfully injected, false otherwise