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 |
Controller instance resolved from DI. | |
|
block |
Registered TAE block providing DOM and block metadata. |
Returns:
Promise<void>