Home > widget-integration > PredictiveBundleController > closePredictiveBundleModal
PredictiveBundleController.closePredictiveBundleModal() method
Closes the predictive bundle modal and restores focus when appropriate.
Signature:
closePredictiveBundleModal(blockType: string, options?: {
restoreSearchFocus?: boolean;
}): void;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
blockType |
string |
Source block type controlling modal placement. |
|
options |
{ restoreSearchFocus?: boolean; } |
(Optional) Focus restoration options. |
Returns:
void