Home > widget-integration > PredictiveBundleController > prepareSurfaceForBlock

PredictiveBundleController.prepareSurfaceForBlock() method

Positions the shared modal surface for the active block context.

Signature:

prepareSurfaceForBlock(surface: ModalSurface, blockType?: string): void;

Parameters

Parameter

Type

Description

surface

ModalSurface

Modal surface to reposition.

blockType

string

(Optional) Source block type controlling placement.

Returns:

void