Home > widget-integration > PredictiveBundleModule > connectWidget

PredictiveBundleModule.connectWidget() method

Connects a predictive bundle controller to a registered block.

Signature:

connectWidget(widget: PredictiveBundleController, block: AppBlock): Promise<void>;

Parameters

Parameter

Type

Description

widget

PredictiveBundleController

Controller instance resolved from DI.

block

AppBlock

Registered TAE block providing DOM and block metadata.

Returns:

Promise<void>