Home > widget-integration > PredictiveBundleController > openPredictiveBundleModal
PredictiveBundleController.openPredictiveBundleModal() method
Opens the predictive bundle modal for a widget.
Signature:
openPredictiveBundleModal(widgetId: string, blockType: string, options?: {
predictiveBundleDataResolver?: PredictiveBundleResolver;
}): Promise<void>;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
widgetId |
string |
Widget id to open. |
|
blockType |
string |
Source block type controlling modal placement. |
|
options |
{ predictiveBundleDataResolver?: PredictiveBundleResolver; } |
(Optional) Optional resolver that can supply fresh bundle data before rendering. |
Returns:
Promise<void>